Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional integer misrepresentation error when passing pointers to reference existing user defined types. #1646

Open
Nyoveee opened this issue Nov 13, 2024 · 0 comments

Comments

@Nyoveee
Copy link

Nyoveee commented Nov 13, 2024

I am using LuaJit as my intepreter.

If the pointer is too large, this particular exception gets thrown. However, I am unable to control the value of my pointer, so not sure if there is any work around.

Tried using sol::optional<std::reference_wrapper> as well, but the issue still comes up occasionally.

Not sure if the only solution is to use Lua 5.4 instead, where they support big integers now. Do I need the precision check? I would assume so since I need the exact value of the pointer.

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

No branches or pull requests

1 participant