fixes 32bit failure
This commit is contained in:
parent
0cd6b2a052
commit
3189775012
|
@ -173,8 +173,9 @@ template testIO(chk, tst: untyped) =
|
||||||
nativeStuint(chk, high(int64), 64)
|
nativeStuint(chk, high(int64), 64)
|
||||||
|
|
||||||
when sizeof(uint) == 4:
|
when sizeof(uint) == 4:
|
||||||
nativeStuint(chk, high(uint), 32)
|
when (NimMajor, NimMinor, NimPatch) >= (1, 0, 0):
|
||||||
nativeStuint(chk, low(uint), 32)
|
nativeStuint(chk, high(uint), 32)
|
||||||
|
nativeStuint(chk, low(uint), 32)
|
||||||
nativeStuint(chk, high(int), 32)
|
nativeStuint(chk, high(int), 32)
|
||||||
else:
|
else:
|
||||||
when (NimMajor, NimMinor, NimPatch) >= (1, 0, 0):
|
when (NimMajor, NimMinor, NimPatch) >= (1, 0, 0):
|
||||||
|
@ -254,7 +255,8 @@ template testIO(chk, tst: untyped) =
|
||||||
when sizeof(uint) == 4:
|
when sizeof(uint) == 4:
|
||||||
nativeStint(chk, high(int), 32)
|
nativeStint(chk, high(int), 32)
|
||||||
nativeStint(chk, low(int), 32)
|
nativeStint(chk, low(int), 32)
|
||||||
nativeStint(chk, low(uint), 32)
|
when (NimMajor, NimMinor, NimPatch) >= (1, 0, 0):
|
||||||
|
nativeStint(chk, low(uint), 32)
|
||||||
else:
|
else:
|
||||||
nativeStint(chk, high(int), 64)
|
nativeStint(chk, high(int), 64)
|
||||||
nativeStint(chk, low(int), 64)
|
nativeStint(chk, low(int), 64)
|
||||||
|
|
Loading…
Reference in New Issue