diff options
-rw-r--r-- | common/endian.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/endian.h b/common/endian.h index 70cc8b434f..21e0d9ee11 100644 --- a/common/endian.h +++ b/common/endian.h @@ -446,7 +446,7 @@ #ifdef HAVE_INT64 inline uint64 READ_BE_UINT64(const void *ptr) { const uint8 *b = (const uint8 *)ptr; - return (b[0] << 56) | b[1] << 48) | b[2] << 40) | b[3] << 32) | b[4] << 24) | (b[5] << 16) | (b[6] << 8) | (b[7]); + return (b[0] << 56) | (b[1] << 48) | (b[2] << 40) | (b[3] << 32) | (b[4] << 24) | (b[5] << 16) | (b[6] << 8) | (b[7]); } inline void WRITE_BE_UINT64(void *ptr, uint64 value) { uint8 *b = (uint8 *)ptr; |