aboutsummaryrefslogtreecommitdiffhomepage
path: root/x86_64/isel.c
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64/isel.c')
-rw-r--r--x86_64/isel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64/isel.c b/x86_64/isel.c
index 65c3e4d..3a753e6 100644
--- a/x86_64/isel.c
+++ b/x86_64/isel.c
@@ -447,7 +447,7 @@ sel(struct function *fn, struct instr *ins, struct block *blk, int *curi)
goto ALU;
} else if (kisint(ins->cls) && isintcon(ins->r)) {
ins->op = op = Oadd;
- ins->r = mkintcon(concls(ins->r), -intconval(ins->r));
+ ins->r = mkintcon(concls(ins->r), -(uvlong)intconval(ins->r));
} else {
goto ALU;
}