Skip to content

Commit

Permalink
expr_comb emit array/range/slice fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smaludzi committed Jan 16, 2021
1 parent adcd075 commit 232a34b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/emit.c
Original file line number Diff line number Diff line change
Expand Up @@ -2501,12 +2501,12 @@ int expr_forin_emit(expr * value, int stack_level, module * module_value,
expr_forin_array_emit(value, stack_level, module_value, list_weak, result);
}
else if (value->forin_value->in_value->comb.comb == COMB_TYPE_RANGE &&
value->forin_value->in_value->comb.array.comb_dims == 1)
value->forin_value->in_value->comb.range.comb_dims == 1)
{
expr_forin_range_emit(value, stack_level, module_value, list_weak, result);
}
else if (value->forin_value->in_value->comb.comb == COMB_TYPE_SLICE &&
value->forin_value->in_value->comb.array.comb_dims == 1)
value->forin_value->in_value->comb.slice.comb_dims == 1)
{
expr_forin_slice_emit(value, stack_level, module_value, list_weak, result);
}
Expand Down

0 comments on commit 232a34b

Please sign in to comment.