Created
May 7, 2016 01:38
-
-
Save cablehead/9d0dde3e424ed5a97da901655ad2c261 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ffi = require("ffi") | |
local upper = 2^48 | |
print("UPPER:", upper) | |
for i = 0, upper do | |
if i % (10*1000*1000*1000) == 0 then | |
print(i) | |
end | |
local val = tonumber(ffi.cast("uintptr_t", i)) | |
assert(ffi.cast("uintptr_t", val) == val) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment