Skip to content

Commit

Permalink
Fix another off-by-one in uninline
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed Jan 17, 2018
1 parent c4e6a35 commit ce466f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spesh/deopt.c
Expand Up @@ -29,7 +29,7 @@ static void uninline(MVMThreadContext *tc, MVMFrame *f, MVMSpeshCandidate *cand,
MVMuint32 last_return_deopt_idx;
MVMint32 i;
for (i = 0; i < cand->num_inlines; i++) {
if (offset >= cand->inlines[i].start && offset <= cand->inlines[i].end) {
if (offset > cand->inlines[i].start && offset <= cand->inlines[i].end) {
/* Create the frame. */
MVMCode *ucode = (MVMCode *)f->work[cand->inlines[i].code_ref_reg].o;
MVMStaticFrame *usf = cand->inlines[i].sf;
Expand Down

0 comments on commit ce466f9

Please sign in to comment.