Skip to content

Commit 714f19a

Browse files
committed
Skip a 64-bit integer test case < 5.3
1 parent 3b6da3c commit 714f19a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/gireg.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ function gireg.type_uint64()
195195
check(not pcall(R.test_uint64, {}))
196196
check(not pcall(R.test_uint64, function() end))
197197

198-
checkv(R.test_uint64(0xffffffffffffffff), 0xffffffffffffffff, 'number')
198+
-- With integer underflows, this actually works.
199+
if nativeIntegers then
200+
checkv(R.test_uint64(0xffffffffffffffff), 0xffffffffffffffff, 'number')
201+
end
199202
-- See comment above about lossy conversions.
200203
--check(not pcall(R.test_uint64, 0x10000000000000000))
201204
end

0 commit comments

Comments
 (0)