X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Fbyteorder.h;h=0ed874bbf68910da09c38ee7565fa05d30cc58ea;hb=7aeb37e1be1a6337fb4d62e942c537cd4e2c633e;hp=907f10aee2f528fa01db1a18b308609ea5f94ada;hpb=e271ac85218162008659069fafd2642ae8ee7a18;p=bertos.git diff --git a/mware/byteorder.h b/mware/byteorder.h index 907f10ae..0ed874bb 100644 --- a/mware/byteorder.h +++ b/mware/byteorder.h @@ -69,8 +69,8 @@ INLINE uint32_t swab32(uint32_t x) */ INLINE uint64_t swab64(uint64_t x) { - return ( (uint64_t)swab32((x >> 32)) - | (uint64_t)swab32(x & (uint32_t)0xFFFFFFFFUL) << 32); + return (uint64_t)swab32(x >> 32) + | ((uint64_t)swab32(x & 0xFFFFFFFFUL) << 32); } /**