diff options
author | Kevin Newton <[email protected]> | 2023-12-14 15:25:54 -0500 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2023-12-14 15:26:01 -0500 |
commit | d3deb1b8232a303dd40909e32f939bad3b24a8af (patch) | |
tree | 54f660598f1d6324fd1e7c08b7acdeff3ecfabbc | |
parent | 08c2c4f922916bd7882813feab68c7c12b89bcbd (diff) |
[prism] Fix build with no asserts
-rw-r--r-- | prism_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prism_compile.c b/prism_compile.c index 64b7a6842e..28f69b2b9e 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -3301,7 +3301,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, const pm_node_t *condition = cast->conditions.nodes[index]; assert(PM_NODE_TYPE_P(condition, PM_IN_NODE)); - const pm_in_node_t *in_node = (const pm_in_node_t *) cast->conditions.nodes[index]; + const pm_in_node_t *in_node = (const pm_in_node_t *) condition; pm_line_node_t in_line; pm_line_node(&in_line, scope_node, (const pm_node_t *) in_node); |