fixed lua_pcall from being retarded... hopefully
This commit is contained in:
parent
82e63e783a
commit
71ed95d2ba
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ pub fn pcall(self: *Self, comptime ReturnType: type, nargs: u32) !ReturnType {
|
|||
.@"struct" => |s| if (s.is_tuple) @intCast(s.fields.len) else @as(c_int, 1),
|
||||
else => 1,
|
||||
};
|
||||
if (lua.lua_pcall(self.state, @intCast(nargs), nresults, 0) != 0) {
|
||||
if (@as(i32, lua.lua_pcall(self.state, @intCast(nargs), nresults, 0)) != 0) {
|
||||
return self.luaError();
|
||||
}
|
||||
if (ReturnType == void) return {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue