migration/qemu-file.c: Don't shift left into sign bit
commit90d6a6730b4dbe7d0ada9900aba8263d61376812
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Dec 2014 22:26:55 +0000 (23 22:26 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 15 Jan 2015 07:44:13 +0000 (15 10:44 +0300)
tree99985a5fd6182dc2a5a36ed388f30db6b7fd1b94
parent2d8ac5eb7a7e72e0877cca2b3705eebeaf5526e7
migration/qemu-file.c: Don't shift left into sign bit

Add a cast in qemu_get_be32() to avoid shifting left into the sign
bit of a signed integer (which is undefined behaviour in C).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
migration/qemu-file.c