Skip to content

Commit

Permalink
Merge branch 'master' into v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pall authored and lukego committed Aug 13, 2017
1 parent de9a886 commit e834e9c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lj_opt_fold.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,14 @@ LJFOLDF(kfold_int64comp)
{
uint64_t a = ir_k64(fleft)->u64, b = ir_k64(fright)->u64;
switch ((IROp)fins->o) {
case IR_LT: return CONDFOLD(a < b);
case IR_GE: return CONDFOLD(a >= b);
case IR_LE: return CONDFOLD(a <= b);
case IR_GT: return CONDFOLD(a > b);
case IR_ULT: return CONDFOLD((uint64_t)a < (uint64_t)b);
case IR_UGE: return CONDFOLD((uint64_t)a >= (uint64_t)b);
case IR_ULE: return CONDFOLD((uint64_t)a <= (uint64_t)b);
case IR_UGT: return CONDFOLD((uint64_t)a > (uint64_t)b);
case IR_LT: return CONDFOLD((int64_t)a < (int64_t)b);
case IR_GE: return CONDFOLD((int64_t)a >= (int64_t)b);
case IR_LE: return CONDFOLD((int64_t)a <= (int64_t)b);
case IR_GT: return CONDFOLD((int64_t)a > (int64_t)b);
case IR_ULT: return CONDFOLD(a < b);
case IR_UGE: return CONDFOLD(a >= b);
case IR_ULE: return CONDFOLD(a <= b);
case IR_UGT: return CONDFOLD(a > b);
default: lua_assert(0); return FAILFOLD;
}
}
Expand Down

0 comments on commit e834e9c

Please sign in to comment.