Skip to content

Commit 96e6275

Browse files
committed
fix: work with vector as array
1 parent a4d08d9 commit 96e6275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4696,7 +4696,7 @@ pub const Lua = opaque {
46964696
const arr_len = switch (@typeInfo(T)) {
46974697
inline else => |i| i.len,
46984698
};
4699-
var result: T = undefined;
4699+
var result: [arr_len]child = undefined;
47004700
lua.pushValue(index);
47014701
defer lua.pop(1);
47024702

0 commit comments

Comments
 (0)