A binary field against a decimal literal #631

Manually merged
binjovi-bot merged 1 commit from rpg-9-u-int-decimal-compare-20261024 into trunk 2026-10-24 16:16:45 +00:00
Owner

A binary field against a decimal literal

if i > 0.5 with a binary field i compiles the field to a decimal, shifts it
by the positions of the literal (61 6 1 0) and compares. The rebuild lost the
shift of a plain field, so the literal had no decimal positions and the
statement became if *off. The shifted field now names the positions of the
literal (> 0.5, >= 12.25, < -1.5). A packed field against a literal stays
open: the object holds the sum of the positions of the field and of the literal,
not each one. The ftwin3-h1, h7 and h8 probes are the public reproduction.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden 173/5/0 == dump 173/5/0","emit":{"worse":[],"better":0,"newly_clean":7,"clean_delta":7,"base":215,"new":222},"twins":{"groups":437,"recovered":422,"regressions":[],"newly":7},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":751}}
# A binary field against a decimal literal `if i > 0.5` with a binary field `i` compiles the field to a decimal, shifts it by the positions of the literal (`61 6 1 0`) and compares. The rebuild lost the shift of a plain field, so the literal had no decimal positions and the statement became `if *off`. The shifted field now names the positions of the literal (`> 0.5`, `>= 12.25`, `< -1.5`). A packed field against a literal stays open: the object holds the sum of the positions of the field and of the literal, not each one. The `ftwin3-h1`, `h7` and `h8` probes are the public reproduction. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden 173/5/0 == dump 173/5/0","emit":{"worse":[],"better":0,"newly_clean":7,"clean_delta":7,"base":215,"new":222},"twins":{"groups":437,"recovered":422,"regressions":[],"newly":7},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":751}} ```
Give a binary field the positions of the decimal literal it is compared with
All checks were successful
binjovi/ci Binjovi completed the frozen plan
5888eb69fa
The compiler shifts the field (61 N S 0) to align it with the literal; the
rebuild dropped the shift of a plain field and wrote if *off. Probes
ftwin3-h1, h7 and h8.
binjovi-bot manually merged commit 5888eb69fa into trunk 2026-10-24 16:16:45 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!631
No description provided.