Skip to content

Commit

Permalink
Add missing offset.
Browse files Browse the repository at this point in the history
  • Loading branch information
N5N3 committed Aug 24, 2022
1 parent 5eb67e3 commit 9c49e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@ static jl_value_t *set_var_to_const(jl_varbinding_t *bb, jl_value_t *v JL_MAYBE_
bb->lb = bb->ub = v;
}
else if (jl_is_long(v) && jl_is_long(bb->lb)) {
if (jl_unbox_long(v) != jl_unbox_long(bb->lb))
if (jl_unbox_long(v) + offset != jl_unbox_long(bb->lb))
return jl_bottom_type;
}
else if (!jl_egal(v, bb->lb)) {
Expand Down

0 comments on commit 9c49e12

Please sign in to comment.