Skip to content

Commit

Permalink
Update amalgamation file
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki authored and actions-user committed Mar 9, 2024
1 parent a2530cc commit 32221ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Distribution/LuaBridge/LuaBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -8378,7 +8378,7 @@ LuaResult callWithHandler(const LuaRef& object, F&& errorHandler, Args&&... args
}
}

const int code = lua_pcall(L, sizeof...(Args), LUA_MULTRET, isValidHandler ? (-sizeof...(Args) - 2) : 0);
const int code = lua_pcall(L, sizeof...(Args), LUA_MULTRET, isValidHandler ? (-static_cast<int>(sizeof...(Args)) - 2) : 0);
if (code != LUABRIDGE_LUA_OK)
{
auto ec = makeErrorCode(ErrorCode::LuaFunctionCallFailed);
Expand Down

0 comments on commit 32221ba

Please sign in to comment.