From 7335c62f9d3f3fb3b3cc616adeb2a17b78907cfb Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 28 Nov 2024 13:14:19 +0900 Subject: [PATCH] Fix a copy-paste error This is not important because of the path of `assert(false)`, but just in case. Coverity Scan found this issue. --- src/prism.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prism.c b/src/prism.c index b01f4df6dd..d9d63d5a65 100644 --- a/src/prism.c +++ b/src/prism.c @@ -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));