From 71ed95d2baab6133b22c687ac804944407c3150d Mon Sep 17 00:00:00 2001 From: abux Date: Mon, 27 Jul 2026 09:56:29 +0100 Subject: [PATCH] fixed lua_pcall from being retarded... hopefully --- src/zla.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zla.zig b/src/zla.zig index aa89c8c..c637359 100644 --- a/src/zla.zig +++ b/src/zla.zig @@ -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 {};