diff options
Diffstat (limited to 'libraries/Ethernet/util.h')
-rw-r--r-- | libraries/Ethernet/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/Ethernet/util.h b/libraries/Ethernet/util.h index 220011b..5042e82 100644 --- a/libraries/Ethernet/util.h +++ b/libraries/Ethernet/util.h @@ -1,7 +1,7 @@ #ifndef UTIL_H #define UTIL_H -#define htons(x) ( (x)<<8 | ((x)>>8)&0xFF ) +#define htons(x) ( ((x)<<8) | (((x)>>8)&0xFF) ) #define ntohs(x) htons(x) #define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \ |