Cast to (uint64_t) instead of relying on the "ul" suffix.
authorJohnny Chen <johnny.chen@apple.com>
Fri, 16 Apr 2010 23:30:28 +0000 (23:30 +0000)
committerJohnny Chen <johnny.chen@apple.com>
Fri, 16 Apr 2010 23:30:28 +0000 (23:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101573 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp

index 5eda8e14bbda4ad7eb5e6125c3e2fb9295fb0903..0301643970b7b7c91321a054b03104f03bcdb487 100644 (file)
@@ -2104,7 +2104,7 @@ static uint64_t decodeN1VImm(uint32_t insn, ElemSize esize) {
   case ESize64: {
     for (unsigned i = 0; i < 8; ++i)
       if ((Imm8 >> i) & 1)
-        Imm64 |= 0xFFul << 8*i;
+        Imm64 |= (uint64_t)0xFF << 8*i;
     break;
   }
   default: