From 3bae9d9d656172faea64f29b69dfcf6c6d8053af Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 10 Dec 2016 12:27:43 -0500 Subject: [PATCH] Lua API: Make bitfield.whole return an integer, not a decimal --- library/LuaTypes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/LuaTypes.cpp b/library/LuaTypes.cpp index 8d61906b9..f281afe86 100644 --- a/library/LuaTypes.cpp +++ b/library/LuaTypes.cpp @@ -945,7 +945,7 @@ static int meta_bitfield_index(lua_State *state) { size_t intv = 0; memcpy(&intv, ptr, std::min(sizeof(intv), size_t(id->byte_size()))); - lua_pushnumber(state, intv); + lua_pushinteger(state, intv); return 1; }