From: Gonglei Date: Wed, 11 Mar 2015 08:21:00 +0000 (+0800) Subject: ui/console: fix OVERFLOW_BEFORE_WIDEN X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~306^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f76b84a04b75e98eee56e8dc277564d0fbb99018;p=sdk%2Femulator%2Fqemu.git ui/console: fix OVERFLOW_BEFORE_WIDEN Signed-off-by: Gonglei Signed-off-by: Gerd Hoffmann --- diff --git a/ui/console.c b/ui/console.c index 87af6b5..b15ca87 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1285,9 +1285,9 @@ DisplaySurface *qemu_create_displaysurface_guestmem(int width, int height, linesize = width * PIXMAN_FORMAT_BPP(format) / 8; } - size = linesize * height; + size = (hwaddr)linesize * height; data = cpu_physical_memory_map(addr, &size, 0); - if (size != linesize * height) { + if (size != (hwaddr)linesize * height) { cpu_physical_memory_unmap(data, size, 0, 0); return NULL; }