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

lua_tointeger conversions fail #26

Closed
GreatEmerald opened this issue Jul 26, 2011 · 5 comments
Closed

lua_tointeger conversions fail #26

GreatEmerald opened this issue Jul 26, 2011 · 5 comments

Comments

@GreatEmerald
Copy link

I'm trying to compile the Phonebook example, and apparently it doesn't work because of this:

LuaD/luad/stack.d(186): Error: cannot implicitly convert expression (lua_tointeger(L,idx)) of type long to uint

You can see the full compilation command and output here: http://pastebin.com/9mc1y6zd

Using DMD64 2.054, RDMD build 20110706 on Linux.

@JakobOvrum
Copy link
Owner

Check if this commit fixes it. Sadly I don't have a 64 bit machine to test on, so thanks for filing this bug!

(I also realized this code needs more unittests, will get on that)

@JakobOvrum
Copy link
Owner

Oops, didn't mean to close it :)

@GreatEmerald
Copy link
Author

That seems to have fixed this issue. However, I noticed another bug that could also be related to 64-bit - every time I create a LuaState, after the program exits, it sends a SIGSEGV segmentation fault and makes a core dump. There is no more information provided anywhere.

Don't worry about accidentally closing the issue, I did it myself several times due to the awkward button placement in GitHub :)

@JakobOvrum
Copy link
Owner

That's probably issue #9 and #11 :(

@GreatEmerald
Copy link
Author

Indeed. Which means that this issue is fixed. I'll let you know if I encounter anything else.

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

2 participants