Skip to content

Commit

Permalink
CallArgs struct
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn committed Oct 30, 2023
1 parent 8beb530 commit 63bea5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pydust/src/trampoline.zig
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ pub fn Trampoline(comptime T: type) type {
}

const args = try py.allocator.alloc(py.PyObject, if (pyargs) |a| a.length() else 0);
defer py.allocator.free(args);
if (pyargs) |a| {
for (0..a.length()) |i| {
args[i] = try a.getItem(py.PyObject, i);
Expand Down

0 comments on commit 63bea5f

Please sign in to comment.