Message ID | 20240908131128.19384-2-huth@tuxfamily.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [PULL,1/3] hw/m68k/mcf5208: Avoid shifting off end of integer | expand |
diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c index ec14096aa4..0ad347dfa8 100644 --- a/hw/m68k/mcf5208.c +++ b/hw/m68k/mcf5208.c @@ -158,7 +158,7 @@ static uint64_t m5208_sys_read(void *opaque, hwaddr addr, { int n; for (n = 0; n < 32; n++) { - if (current_machine->ram_size < (2u << n)) { + if (current_machine->ram_size < (2ULL << n)) { break; } }