I've got a problem passing in an Integer from C++ into the Lua program. I'm using the following code to pass the variable in.
lua_pushinteger (state, iInt);
The integer is signed and can't hold a number such as 0x88D37A6C, it will probably turn into a negative number. Use lua_pushnumber to pass such large integers.