fixes 32bit failure

This commit is contained in:
andri lim 2019-10-16 18:53:57 +07:00 committed by zah
parent 0cd6b2a052
commit 3189775012
1 changed files with 5 additions and 3 deletions

View File

@ -173,6 +173,7 @@ template testIO(chk, tst: untyped) =
nativeStuint(chk, high(int64), 64)
when sizeof(uint) == 4:
when (NimMajor, NimMinor, NimPatch) >= (1, 0, 0):
nativeStuint(chk, high(uint), 32)
nativeStuint(chk, low(uint), 32)
nativeStuint(chk, high(int), 32)
@ -254,6 +255,7 @@ template testIO(chk, tst: untyped) =
when sizeof(uint) == 4:
nativeStint(chk, high(int), 32)
nativeStint(chk, low(int), 32)
when (NimMajor, NimMinor, NimPatch) >= (1, 0, 0):
nativeStint(chk, low(uint), 32)
else:
nativeStint(chk, high(int), 64)