]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/flatload.c
linux-user: improve flatload error checking
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:14 +0000 (05:53 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:14 +0000 (05:53 +0000)
commitf562e716c962451af359e5a59ee9dbbd66b9fee8
treef5f3e4d75dc059a4b0529a9d6b8f2638e91c7a18
parentd0b3e4f5f4a29d48250887e5c0b3c65bc4dc6d13
linux-user: improve flatload error checking

Because of the use of unsigned type, possible errors during
load were ignored.

Fix by using a signed type.

This also avoids a warning with GCC flag -Wtype-limits.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
linux-user/flatload.c