May I suggest you use long double as lua_integer, which should handle 64-bit integer without problem, and less prone to error. 2010/12/14 周帆 <zzffbbpp@gmail.com>: > Can lua 5.2 support int64?