[Lua] Fix compiler warnings
This commit is contained in:
parent
8e70c588df
commit
e66d8125aa
1 changed files with 2 additions and 2 deletions
|
|
@ -1860,7 +1860,7 @@ SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) {
|
||||||
switch(constants[i].type) {
|
switch(constants[i].type) {
|
||||||
case SWIG_LUA_INT:
|
case SWIG_LUA_INT:
|
||||||
lua_pushstring(L,constants[i].name);
|
lua_pushstring(L,constants[i].name);
|
||||||
lua_pushinteger(L,(lua_Number)constants[i].lvalue);
|
lua_pushinteger(L,(lua_Integer)constants[i].lvalue);
|
||||||
lua_rawset(L,-3);
|
lua_rawset(L,-3);
|
||||||
break;
|
break;
|
||||||
case SWIG_LUA_FLOAT:
|
case SWIG_LUA_FLOAT:
|
||||||
|
|
@ -1871,7 +1871,7 @@ SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) {
|
||||||
case SWIG_LUA_CHAR:
|
case SWIG_LUA_CHAR:
|
||||||
lua_pushstring(L,constants[i].name);
|
lua_pushstring(L,constants[i].name);
|
||||||
{
|
{
|
||||||
char c = constants[i].lvalue;
|
char c = (char)constants[i].lvalue;
|
||||||
lua_pushlstring(L,&c,1);
|
lua_pushlstring(L,&c,1);
|
||||||
}
|
}
|
||||||
lua_rawset(L,-3);
|
lua_rawset(L,-3);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue