fix parsing of lua colors over 0x80000000 on 32bits systems

This commit is contained in:
zeromus 2016-08-21 20:12:49 +00:00
parent c4ec35c518
commit 2873344ce8
1 changed files with 2 additions and 2 deletions

View File

@ -3341,8 +3341,8 @@ static inline uint32 gui_getcolour_wrapped(lua_State *L, int offset, bool hasDef
}
case LUA_TNUMBER:
{
uint32 colour = (uint32) lua_tointeger(L,offset);
return colour;
const char *str = lua_tostring(L,offset);
return (uint32)strtod(str,NULL);
}
case LUA_TTABLE:
{