Skip to contentSkip to conversation

target-i386: Fix compiler warning (integer constant is too large)

PATCH Applied Stefan Weil 2 participants 2 messages Sep 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-i386: Fix compiler warning (integer constant is too large)

Quoted 1 line

From buildbot default_i386_rhel61:

CC i386-softmmu/target-i386/arch_memory_mapping.o
target-i386/arch_memory_mapping.c: In function 'walk_pde':
target-i386/arch_memory_mapping.c:110: warning:
integer constant is too large for 'long' type

---
 target-i386/arch_memory_mapping.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/arch_memory_mapping.c +1 -1
index 2566a04..462f984 100644
@@ -75,7 +75,7 @@ static void walk_pte2(MemoryMappingList *list,
 }
 
 /* PAE Paging or IA-32e Paging */
-#define PLM4_ADDR_MASK 0xffffffffff000 /* selects bits 51:12 */
+#define PLM4_ADDR_MASK 0xffffffffff000ULL /* selects bits 51:12 */
 
 static void walk_pde(MemoryMappingList *list, hwaddr pde_start_addr,
                      int32_t a20_mask, target_ulong start_line_addr)
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · Stefan Weil

From buildbot default_i386_rhel61:

CC i386-softmmu/target-i386/arch_memory_mapping.o
target-i386/arch_memory_mapping.c: In function 'walk_pde':
target-i386/arch_memory_mapping.c:110: warning:
integer constant is too large for 'long' type

Thanks, applied to the trivial-patches queue.

/mjt