diff --git a/tests/test_int_addsub.nim b/tests/test_int_addsub.nim index 110d770..e659cf0 100644 --- a/tests/test_int_addsub.nim +++ b/tests/test_int_addsub.nim @@ -228,7 +228,10 @@ template testAddSub(chk, tst: untyped) = chkNegation(chk, 127, -127, 128) chkNegation(chk, 32768, -32768, 128) chkNegation(chk, 32767, -32767, 128) - chkNegation(chk, 2147483648, -2147483648, 128) + # With Nim 1.6, it seems like https://github.com/status-im/nim-stint/issues/92 + # can now happen on 32-bit platforms. + when (NimMajor,NimMinor,NimPatch) < (1,6,0): + chkNegation(chk, 2147483648, -2147483648, 128) chkNegation(chk, 2147483647, -2147483647, 128) #chkNegation(chk, 9223372036854775808, -9223372036854775808, 128) # TODO: bug #92