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