diff options
author | Oliver Schneider <oliver@assarbad.net> | 2014-01-30 05:23:09 +0400 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2014-01-30 05:23:09 +0400 |
commit | 4db0c1d40767dc0549607c880eec4ba75c29f3de (patch) | |
tree | c5ca6138648dcfe38957a5ae9657319e87717580 /3rdparty | |
parent | df218ca45ad982df2466b5c1978cd65c4134938e (diff) |
Getting rid of warnings
Adding .lua file to ignore list
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/lua/src/modules/w32resembed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/lua/src/modules/w32resembed.c b/3rdparty/lua/src/modules/w32resembed.c index a5577c5..7a41b0c 100644 --- a/3rdparty/lua/src/modules/w32resembed.c +++ b/3rdparty/lua/src/modules/w32resembed.c @@ -165,7 +165,7 @@ static int luaC_winres_loader_(lua_State* L) dwScriptLen -= sizeof(utf8bom);
}
// Load the script into the Lua state
- if((ret = luaL_loadbuffer(L, scriptBuf, scriptLen, chunkName)))
+ if(0 != (ret = luaL_loadbuffer(L, scriptBuf, scriptLen, chunkName)))
{
luaL_error(L, "Could not load Lua chunk from resource (%d): %s", ret, lua_tostring(L, -1));
return 0;
@@ -173,7 +173,7 @@ static int luaC_winres_loader_(lua_State* L) // the loaded script is at the top of the stack
lua_remove(L, 2); // remove the chunk name now
lua_pushtstring(L, resName);
- if((ret = lua_pcall(L, 1, LUA_MULTRET, 0)))
+ if(0 != (ret = lua_pcall(L, 1, LUA_MULTRET, 0)))
{
luaL_error(L, "Could not call the newly loaded chunk (%d): %s", ret, lua_tostring(L, -1));
}
|