mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
CLuaInstance: Fix compiler warnings
Origin commit data
------------------
Branch: ni/coolstream
Commit: 10f17ad5ee
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-04-24 (Sun, 24 Apr 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -625,8 +625,10 @@ CLuaData *CLuaInstance::CheckData(lua_State *L, int narg)
|
||||
{
|
||||
luaL_checktype(L, narg, LUA_TUSERDATA);
|
||||
void *ud = luaL_checkudata(L, narg, className);
|
||||
if (!ud)
|
||||
if (!ud) {
|
||||
fprintf(stderr, "[CLuaInstance::%s] wrong type %p, %d, %s\n", __func__, L, narg, className);
|
||||
return NULL;
|
||||
}
|
||||
return *(CLuaData **)ud; // unbox pointer
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user