[goalc] fix mod bug and add div tests (#1296)

* fix mod bug and add div tests

* update changelog
This commit is contained in:
water111
2022-04-11 20:53:24 -04:00
committed by GitHub
parent a7eee4fdc9
commit b263e33e94
9 changed files with 70 additions and 5 deletions
+2 -1
View File
@@ -219,4 +219,5 @@
## V0.9 Large change to macro expansion and constant propagation
The compiler is now much more aggressive in where and how it expands macros and handles expressions at compiler time.
- Several places where macros could be incorrectly executed more than once (possibly causing unwanted side effects) have been fixed.
- Fixed bug in size calculation of non-inline stack arrays. Previous behavior was a compiler assert.
- Fixed bug in size calculation of non-inline stack arrays. Previous behavior was a compiler assert.
- Correctly handle `mod` for unsigned numbers. Previous behavior was to treat all inputs as 32-bit signed integers.