Open lvcabral opened 3 years ago
This was introduced recently, the root cause was this pull request: https://github.com/sjbarag/brs/pull/443
It is wrong for any case with negative number first, like the example below:
Off-Roku BrightScript interpreter [Version 0.44.0]
brs> print -1000 + 1000
-2000
brs> print +1000 - 1000
0
Try the code below:
This should print:
0 0 0 0
instead it prints:-192 -112 -2176 -1216