Don't let sign extension mess us up here.
Modified: trunk/reactos/drivers/net/tcpip/include/tcpip.h
_____
Modified: trunk/reactos/drivers/net/tcpip/include/tcpip.h
--- trunk/reactos/drivers/net/tcpip/include/tcpip.h 2005-03-18
02:10:50 UTC (rev 14171)
+++ trunk/reactos/drivers/net/tcpip/include/tcpip.h 2005-03-18
02:56:29 UTC (rev 14172)
@@ -136,7 +136,7 @@
} TDIEntityInfo;
#ifndef htons
-#define htons(x) (((x) << 8) | (((x) >> 8) & 0xff))
+#define htons(x) ((((x) & 0xff) << 8) | (((x) >> 8) & 0xff))
#endif
/* Global variable */
Show replies by date