fix four conditional operands sexc emitted without parentheses, and mark every Sex workaround with a TODO
A conditional as an operand loses its parentheses (sex#59): box-blur allocated a quarter of its buffer, deep water got the shallow colour, and verify's delta histogram wrote out of bounds into the height classes. Plan.org quoted the corrupted count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -100,6 +100,8 @@
|
||||
|
||||
;;; NaturalShape -----------------------------------------------------
|
||||
|
||||
;; TODO sex#57: make this private again once a pub record can use a
|
||||
;; private type.
|
||||
(pub record shape-cell ((x int) (z int) (open [bool 4]) (live bool)))
|
||||
|
||||
(pub record natural-shape
|
||||
@@ -238,6 +240,8 @@
|
||||
(for (var i int 0) (< i (. in cap)) (++ i)
|
||||
(if (== [(. in state) i] 1)
|
||||
(.put set (+ x0 (cast (>> [(. in keys) i] 32) i32))
|
||||
;; TODO sex#47: write the mask in hex once there are hex
|
||||
;; literals.
|
||||
(+ z0 (cast (& [(. in keys) i] 4294967295) i32)) 1))))
|
||||
|
||||
(pub fn release ((self (* natural-shape))) void
|
||||
|
||||
Reference in New Issue
Block a user