Fix 32bit issues in tests.
This commit is contained in:
parent
1b94fe21dd
commit
a61baae44c
|
@ -1 +1,4 @@
|
|||
switch("threads", "on")
|
||||
# The compiler doth protest too much, methinks, about all these cases where it can't
|
||||
# do its (N)RVO pass: https://github.com/nim-lang/RFCs/issues/230
|
||||
switch("warning", "ObservableStores:off")
|
||||
|
|
|
@ -24,7 +24,7 @@ proc decodeString*(t: typedesc[GenericType[int]],
|
|||
if parseSaturatedNatural(value, v) == 0:
|
||||
err("Unable to decode decimal string")
|
||||
else:
|
||||
if v == high(int64):
|
||||
if v == high(int):
|
||||
err("Integer overflow")
|
||||
else:
|
||||
ok(GenericType[int](data: v))
|
||||
|
@ -51,7 +51,7 @@ proc decodeString*(t: typedesc[CustomType1],
|
|||
if parseSaturatedNatural(res, v) == 0:
|
||||
err("Unable to decode decimal string")
|
||||
else:
|
||||
if v == high(int64):
|
||||
if v == high(int):
|
||||
err("Integer overflow")
|
||||
else:
|
||||
ok(CustomType1(kind: CustomKind.Level1, level1: v))
|
||||
|
@ -73,7 +73,7 @@ proc decodeString*(t: typedesc[int], value: string): RestResult[int] =
|
|||
if parseSaturatedNatural(value, v) == 0:
|
||||
err("Unable to decode decimal string")
|
||||
else:
|
||||
if v == high(int64):
|
||||
if v == high(int):
|
||||
err("Integer overflow")
|
||||
else:
|
||||
ok(v)
|
||||
|
|
Loading…
Reference in New Issue