Message ID | 20161129195533.23113-3-lersek@redhat.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/hw/core/loader.c b/hw/core/loader.c index c0d645a87134..45742494e6fd 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -818,7 +818,7 @@ static QTAILQ_HEAD(, Rom) roms = QTAILQ_HEAD_INITIALIZER(roms); static inline bool rom_order_compare(Rom *rom, Rom *item) { - return (rom->as > item->as) || + return ((uintptr_t)(void *)rom->as > (uintptr_t)(void *)item->as) || (rom->as == item->as && rom->addr >= item->addr); }