multiboot: Use signed type for negative error numbers
commit5f370b14639370b1e010fac5b1fd094e502a781e
authorKevin Wolf <kwolf@redhat.com>
Wed, 18 Nov 2009 11:15:21 +0000 (18 12:15 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 21:26:00 +0000 (3 15:26 -0600)
treeebed3290cdf54fb2d2c82ded220ab0fef12f11e8
parent6769da29c7a3caa9de4020db87f495de692cf8e2
multiboot: Use signed type for negative error numbers

In mb_mod_length a return value is stored that is negative in error case. With
an unsigned type the check goes wrong.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pc.c