Browse Source

Avoid negative left shift, fixes llvm builds

Ray Lai 7 years ago
parent
commit
932650163e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sys/src/libmach/8db.c

+ 1 - 1
sys/src/libmach/8db.c

@@ -1499,7 +1499,7 @@ badop:
 					return 0;
 				ip->imm64 = ip->imm;
 				if(ip->rex&REXW && (ip->imm & (1<<31)) != 0)
-					ip->imm64 |= (int64_t)~0 << 32;
+					ip->imm64 |= (uint64_t)~0 << 32;
 			} else {
 				if (igets(map, ip, &s)< 0)
 					return 0;