]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/hal/common/v2_0/include/hal_endian.h
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / hal / common / v2_0 / include / hal_endian.h
index 4b550cfc843e7d84cc6ec28df07b5377619e1dbe..1b7687cb522032f48836d2a5c7d6a5952141e915 100644 (file)
@@ -63,7 +63,7 @@
 
 #ifndef CYG_SWAP16
 # define CYG_SWAP16(_x_)                                        \
-    ({ cyg_uint16 _x = (_x_); ((_x << 8) | (_x >> 8)); })
+    ({ cyg_uint16 _x = (_x_); (cyg_uint16)((_x << 8) | (_x >> 8)); })
 #endif
 
 #ifndef CYG_SWAP32