Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

tonumber(uintptr_t) returns negative value. #68

Open
moteus opened this issue Dec 24, 2013 · 0 comments
Open

tonumber(uintptr_t) returns negative value. #68

moteus opened this issue Dec 24, 2013 · 0 comments

Comments

@moteus
Copy link

moteus commented Dec 24, 2013

WinXP(x86) MSVC10 Express.

ffi = require "ffi"
uintptr_t = ffi.typeof("uintptr_t")
v = ffi.new(uintptr_t, 0xFFFFFFFF)
print(tonumber(v))

prints -1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant