summaryrefslogtreecommitdiffstats
path: root/heimdall/source/InboundPacket.h
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-05-31 22:42:21 +0200
committerBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-05-31 23:06:09 +0200
commit1ef6e97b9089042316b49bb6c01668b531e2eae5 (patch)
treef36ea3f02ee5fbb2eec9f56beb1384125cee2e6b /heimdall/source/InboundPacket.h
parentMade "make install" install the udev rules. (diff)
downloadHeimdall-1ef6e97b9089042316b49bb6c01668b531e2eae5.tar
Heimdall-1ef6e97b9089042316b49bb6c01668b531e2eae5.tar.gz
Heimdall-1ef6e97b9089042316b49bb6c01668b531e2eae5.tar.bz2
Heimdall-1ef6e97b9089042316b49bb6c01668b531e2eae5.tar.lz
Heimdall-1ef6e97b9089042316b49bb6c01668b531e2eae5.tar.xz
Heimdall-1ef6e97b9089042316b49bb6c01668b531e2eae5.tar.zst
Heimdall-1ef6e97b9089042316b49bb6c01668b531e2eae5.zip
Diffstat (limited to '')
-rw-r--r--heimdall/source/InboundPacket.h6
1 files changed, 3 insertions, 3 deletions
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);