Skip to content

Commit

Permalink
Fix a copy-paste error
Browse files Browse the repository at this point in the history
This is not important because of the path of `assert(false)`, but just
in case.

Coverity Scan found this issue.
  • Loading branch information
mame committed Nov 28, 2024
1 parent 93c0474 commit 7335c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prism.c
Original file line number Diff line number Diff line change
Expand Up @@ -15096,7 +15096,7 @@ parse_rescues(pm_parser_t *parser, size_t opening_newline_index, const pm_token_
case PM_RESCUES_LAMBDA: context = PM_CONTEXT_LAMBDA_ELSE; break;
case PM_RESCUES_MODULE: context = PM_CONTEXT_MODULE_ELSE; break;
case PM_RESCUES_SCLASS: context = PM_CONTEXT_SCLASS_ELSE; break;
default: assert(false && "unreachable"); context = PM_CONTEXT_BEGIN_RESCUE; break;
default: assert(false && "unreachable"); context = PM_CONTEXT_BEGIN_ELSE; break;
}

else_statements = parse_statements(parser, context, (uint16_t) (depth + 1));
Expand Down

0 comments on commit 7335c62

Please sign in to comment.