You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current behavior is intentional, as overflow detection is not implemented. It's something I've been studying how to implement in the best possible way.
The current code is as if it were always compiling with -d:danger.
So any number above high(Int128) == 170141183460469231731687303715884105727 you can expect this silent overflow behavior.
playground.zip
The attached file demonstrates this chunk of code:
var a: Int128
a = i128("1231231298371293217931712312312983712932179317")
echo(a)
Returns this number:
30447654189836100383415788052960652661
Here were the release flags used:
nimble build --mm:orc --threads:on -r -d:release
It appears there is a discrepancy.
The text was updated successfully, but these errors were encountered: