Lua API: Make bitfield.whole return an integer, not a decimal

develop
lethosor 2016-12-10 12:27:43 -05:00
parent 0c6c94b310
commit 3bae9d9d65
1 changed files with 1 additions and 1 deletions

@ -945,7 +945,7 @@ static int meta_bitfield_index(lua_State *state)
{ {
size_t intv = 0; size_t intv = 0;
memcpy(&intv, ptr, std::min(sizeof(intv), size_t(id->byte_size()))); memcpy(&intv, ptr, std::min(sizeof(intv), size_t(id->byte_size())));
lua_pushnumber(state, intv); lua_pushinteger(state, intv);
return 1; return 1;
} }