cg3: add explicit ram_addr_t cast to scanline page variable
Coverity warns that multiplying two 32-bit values gives a 32-bit result which is assigned to a 64-bit variable. Add an explicit ram_addr_t cast to silence the warning. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
b290f3b12e
commit
8eb57ae3f9
@ -113,7 +113,7 @@ static void cg3_update_display(void *opaque)
|
||||
for (y = 0; y < height; y++) {
|
||||
int update = s->full_update;
|
||||
|
||||
page = y * width;
|
||||
page = (ram_addr_t)y * width;
|
||||
update |= memory_region_get_dirty(&s->vram_mem, page, width,
|
||||
DIRTY_MEMORY_VGA);
|
||||
if (update) {
|
||||
|
Loading…
Reference in New Issue
Block a user