Skip to content

fix ArrayList getLast calls#3192

Open
l1yefeng wants to merge 1 commit intozigtools:masterfrom
l1yefeng:master
Open

fix ArrayList getLast calls#3192
l1yefeng wants to merge 1 commit intozigtools:masterfrom
l1yefeng:master

Conversation

@l1yefeng
Copy link
Copy Markdown

@l1yefeng l1yefeng commented May 4, 2026

https://codeberg.org/ziglang/zig/commit/d02d0b879c143e1495fc360845d6feec1ac293ed has updated the prototype of getLast and getLastOrNull.

};

try stack.append(arena, stack.getLast());
try stack.append(arena, stack.items[stack.items.len - 1]);
Copy link
Copy Markdown
Contributor

@nektro nektro May 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
try stack.append(arena, stack.items[stack.items.len - 1]);
try stack.append(arena, stack.getLast().?);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants