Skip to content

Commit

Permalink
codedump.c: remove unnecessary condition.
Browse files Browse the repository at this point in the history
`(irep->pool[b].tt & IREP_TT_NFLAG) == 0` is always true ensured by
the assertion.
  • Loading branch information
matz committed Feb 2, 2022
1 parent f9f2d4c commit 8d06e79
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/codedump.c
Expand Up @@ -494,12 +494,7 @@ codedump(mrb_state *mrb, const mrb_irep *irep)
break;
CASE(OP_STRING, BB):
mrb_assert((irep->pool[b].tt&IREP_TT_NFLAG)==0);
if ((irep->pool[b].tt & IREP_TT_NFLAG) == 0) {
printf("STRING\tR%d\tL(%d)\t; %s", a, b, irep->pool[b].u.str);
}
else {
printf("STRING\tR%d\tL(%d)\t", a, b);
}
printf("STRING\tR%d\tL(%d)\t; %s", a, b, irep->pool[b].u.str);
print_lv_a(mrb, irep, a);
break;
CASE(OP_STRCAT, B):
Expand Down

0 comments on commit 8d06e79

Please sign in to comment.