From 1ef6e97b9089042316b49bb6c01668b531e2eae5 Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Wed, 1 Jun 2011 06:42:21 +1000 Subject: 1.2.0b Heimdall command line update. Large update that adds lots of PIT file functionality and better support for more devices. --- heimdall/source/InboundPacket.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'heimdall/source/InboundPacket.h') diff --git a/heimdall/source/InboundPacket.h b/heimdall/source/InboundPacket.h index 6ff3087..3285c48 100644 --- a/heimdall/source/InboundPacket.h +++ b/heimdall/source/InboundPacket.h @@ -35,14 +35,14 @@ namespace Heimdall protected: - int UnpackInteger(int offset) + unsigned int UnpackInteger(unsigned int offset) const { #ifdef WORDS_BIGENDIAN - int value = (data[offset] << 24) | (data[offset + 1] << 16) | + unsigned int value = (data[offset] << 24) | (data[offset + 1] << 16) | (data[offset + 2] << 8) | data[offset + 3]; #else // Flip endianness - int value = data[offset] | (data[offset + 1] << 8) | + unsigned int value = data[offset] | (data[offset + 1] << 8) | (data[offset + 2] << 16) | (data[offset + 3] << 24); #endif return (value); -- cgit v1.1