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