Message ID | 1480564455-23933-5-git-send-email-mst@redhat.com |
---|---|
State | Accepted |
Commit | 1b57bd4f2f4993104a5cb48912435396faa10d58 |
Headers | show |
diff --git a/hw/core/loader.c b/hw/core/loader.c index c0d645a..4574249 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); }