This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch feature/use_ser_hander_in_psa
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/feature/use_ser_hander_in_psa
by this push:
new 5aece55 Fixes the bswap_16 marcro used in OSX
5aece55 is described below
commit 5aece55dfb5064c159c27b4095efec0c00108880
Author: Pepijn Noltes <[email protected]>
AuthorDate: Thu May 27 21:39:37 2021 +0200
Fixes the bswap_16 marcro used in OSX
---
libs/utils/include/celix_byteswap.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/utils/include/celix_byteswap.h
b/libs/utils/include/celix_byteswap.h
index 47c413a..aa60e09 100644
--- a/libs/utils/include/celix_byteswap.h
+++ b/libs/utils/include/celix_byteswap.h
@@ -24,7 +24,7 @@
#if defined(__APPLE__)
/* Swap bytes in 16 bit value. */
#define bswap_16(x) \
- ((((x) & 0xff00) << 8) | (((x) & 0x00ff) >> 8))
+ ((((x) & 0xff00) >> 8) | (((x) & 0x00ff) << 8))
#define __bswap_16 bswap_16
/* Swap bytes in 32 bit value. */