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
import bigints
var
a =0.initBigInt
b ="359097073186387306".initBigInt
a = a + b # Error: unhandled exception: index out of bounds, the container is empty [IndexError]
The above seems to work if b < uint32.high.
With a temporary variable it works:
import bigints
var
a =0.initBigInt
b ="359097073186387306".initBigInt
t: BigInt# with a temporary variable t it works
t = a + b
a = t
echo a
expected to work:
The above seems to work if
b < uint32.high
.With a temporary variable it works:
for context where this came from, see https://forum.nim-lang.org/t/6327
The text was updated successfully, but these errors were encountered: