write masks, colours and hash constants in hex
sexc reads hex literals now (sex#47). The OpenSimplex constants are spelled as the C# spells them, and the colours as the comments that stood in for them did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,10 +41,8 @@
|
||||
(break))
|
||||
(var b u8 (* (. self p)))
|
||||
(++ (. self p))
|
||||
;; TODO sex#47: write the varint masks in hex once there are hex
|
||||
;; literals.
|
||||
(c-bit-or= v (<< (cast (& b 127) u64) shift))
|
||||
(if (< b 128)
|
||||
(c-bit-or= v (<< (cast (& b 0x7F) u64) shift))
|
||||
(if (< b 0x80)
|
||||
(return v)))
|
||||
(.fail self)
|
||||
(return 0))
|
||||
|
||||
Reference in New Issue
Block a user