Skip to content

Commit

Permalink
initializing var
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea committed May 15, 2024
1 parent 7840b64 commit c507ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/words.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ DEF_WORD("tuck", tuck) {
DEF_WORD("pick", pick) {
STATUS_CHECK(stack_len(stack) > 0, "stack underflow: 1 value expected");
own(array_t) x = stack_pop(stack);
size_t n;
size_t n = 0;
STATUS_UNWRAP(as_size_t(x, &n));
STATUS_CHECK(stack_len(stack) > n, "stack underflow: index %ld >= stack size %ld", n, stack_len(stack));

Expand Down

0 comments on commit c507ae6

Please sign in to comment.