summaryrefslogtreecommitdiffstats
path: root/common/md5.c
diff options
context:
space:
mode:
authorplettix <plettix@gmail.com>2015-07-22 13:32:35 +0200
committerplettix <plettix@gmail.com>2015-07-22 13:32:35 +0200
commit684ebe02a202da178f8ae60e601f628ce801c9f9 (patch)
tree43d614e809255bd41c8fe38f2cee4497212a33c6 /common/md5.c
parentfe7df89fb1777b4fd303d5a601541f6062caf8ea (diff)
downloadlibtdevnc-684ebe02a202da178f8ae60e601f628ce801c9f9.tar.gz
libtdevnc-684ebe02a202da178f8ae60e601f628ce801c9f9.zip
another shift fix
Diffstat (limited to 'common/md5.c')
-rw-r--r--common/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/md5.c b/common/md5.c
index e185bc1..c3e3fd7 100644
--- a/common/md5.c
+++ b/common/md5.c
@@ -46,7 +46,7 @@
#ifdef WORDS_BIGENDIAN
# define SWAP(n) \
- (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
+ ((((n) & 0x00ff) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | (((n) >> 24) & 0x00ff))
#else
# define SWAP(n) (n)
#endif