aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lj_opt_fold.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c
index bc53b168..2d08e187 100644
--- a/src/lj_opt_fold.c
+++ b/src/lj_opt_fold.c
@@ -1019,7 +1019,7 @@ LJFOLD(SUBOV any any)
1019LJFOLDF(simplify_intsub) 1019LJFOLDF(simplify_intsub)
1020{ 1020{
1021 if (fins->op1 == fins->op2 && !irt_isnum(fins->t)) /* i - i ==> 0 */ 1021 if (fins->op1 == fins->op2 && !irt_isnum(fins->t)) /* i - i ==> 0 */
1022 return INTFOLD(0); 1022 return irt_is64(fins->t) ? INT64FOLD(0) : INTFOLD(0);
1023 return NEXTFOLD; 1023 return NEXTFOLD;
1024} 1024}
1025 1025
@@ -1492,7 +1492,7 @@ LJFOLD(BXOR any any)
1492LJFOLDF(comm_bxor) 1492LJFOLDF(comm_bxor)
1493{ 1493{
1494 if (fins->op1 == fins->op2) /* i xor i ==> 0 */ 1494 if (fins->op1 == fins->op2) /* i xor i ==> 0 */
1495 return INTFOLD(0); 1495 return irt_is64(fins->t) ? INT64FOLD(0) : INTFOLD(0);
1496 return fold_comm_swap(J); 1496 return fold_comm_swap(J);
1497} 1497}
1498 1498