aboutsummaryrefslogtreecommitdiff
path: root/src/libmach/mach386.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmach/mach386.c')
-rw-r--r--src/libmach/mach386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmach/mach386.c b/src/libmach/mach386.c
index 3b39d697..336cec35 100644
--- a/src/libmach/mach386.c
+++ b/src/libmach/mach386.c
@@ -1701,7 +1701,7 @@ badop:
return 0;
ip->imm64 = ip->imm;
if(ip->rex&REXW && (ip->imm & (1<<31)) != 0)
- ip->imm64 |= (vlong)~0 << 32;
+ ip->imm64 |= (vlong)(~0ULL << 32);
} else {
if (igets(map, ip, &s)< 0)
return 0;