Skip to contentSkip to conversation

hw/ppc/spapr_hcall.c: Add ULL suffix to 64 bit constant

Qemu-devel Peter Maydell 2 participants 2 messages Jul 8, 2014

lore
Share & tools
lore
#0 lore raw

Add ULL suffix to 64 bit constant to prevent compiler warnings on some 32 bit platforms.

---
Planning to commit this to master as a buildfix for rc1.

 hw/ppc/spapr_hcall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ppc/spapr_hcall.c +1 -1
index 7952077..467858c 100644
@@ -770,7 +770,7 @@ static target_ulong h_set_mode_resouce_addr_trans_mode(PowerPCCPU *cpu,
         prefix = 0x18000;
         break;
     case H_SET_MODE_ADDR_TRANS_C000_0000_0000_4000:
-        prefix = 0xC000000000004000;
+        prefix = 0xC000000000004000ULL;
         break;
     default:
         return H_UNSUPPORTED_FLAG;
Signature · 1 line
1.9.1