fixes high(uint64) issue with nim 19.6

This commit is contained in:
andri lim 2019-10-22 18:16:02 +07:00 committed by zah
parent c456190980
commit 332688fc92
1 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@ template testBitwise(chk, tst: untyped) =
chkNot(chk, high(uint8), not uint64(high(uint8)), 64) chkNot(chk, high(uint8), not uint64(high(uint8)), 64)
chkNot(chk, high(uint16), not uint64(high(uint16)), 64) chkNot(chk, high(uint16), not uint64(high(uint16)), 64)
chkNot(chk, high(uint32), not uint64(high(uint32)), 64) chkNot(chk, high(uint32), not uint64(high(uint32)), 64)
when (NimMajor, NimMinor, NimPatch) >= (1, 0, 0):
chkNot(chk, high(uint64), not high(uint64), 64) chkNot(chk, high(uint64), not high(uint64), 64)
chkNot(chk, "0", "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", 128) chkNot(chk, "0", "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", 128)