converted unsigned long results to Lua number for x64 compat.