Remove clang warnings

Update SGCT repository
This commit is contained in:
Alexander Bock
2017-12-29 19:47:33 +01:00
parent c9a3c68f19
commit cc178d03f3
17 changed files with 61 additions and 115 deletions

View File

@@ -274,7 +274,7 @@ void ScriptEngine::addLibraryFunctions(lua_State* state, LuaLibrary& library,
for (void* d : p.userdata) {
lua_pushlightuserdata(state, d);
}
lua_pushcclosure(state, p.function, p.userdata.size());
lua_pushcclosure(state, p.function, static_cast<int>(p.userdata.size()));
lua_settable(state, TableOffset);
}