Character Handling (%c
):
- Added modulo 256 truncation to align with C's
unsigned char
behavior, ensuring values wrap within 0-255. - Negative inputs now wrap via modulo 256 (e.g.,
-1
becomes255
).
Binary Handling (%b
):
- Negative numbers now use 32-bit two's complement (e.g.,
-5
becomes11111111111111111111111111111011
). - Values are truncated to 32 bits via
& 0xFFFFFFFF
to mimic C's integer overflow.
Full Changelog: v0.0.7...v0.0.8