Skip to content

Commit f8983a5

Browse files
axdankrobbielyman
authored andcommitted
fix returns
1 parent 1c2fb9a commit f8983a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4438,20 +4438,20 @@ pub const Lua = opaque {
44384438
switch (rti) {
44394439
.error_union => {
44404440
if (rti.error_union.payload == void) {
4441-
try @call(.auto, fl, toLuaArgs);
4441+
return try @call(.auto, fl, toLuaArgs);
44424442
} else {
44434443
@compileError("toLua invalid return type, required fn signature: " ++ fnSignature);
44444444
}
44454445
},
44464446
.void => {
4447-
@call(.auto, fl, toLuaArgs);
4447+
return @call(.auto, fl, toLuaArgs);
44484448
},
44494449
else => {
44504450
@compileError("toLua invalid return type, required fn signature: " ++ fnSignature);
44514451
},
44524452
}
44534453
} else {
4454-
@call(.auto, fl, toLuaArgs);
4454+
return @call(.auto, fl, toLuaArgs);
44554455
}
44564456
} else {
44574457
@compileError("toLua has invalid args, required fn signature: " ++ fnSignature);

0 commit comments

Comments
 (0)