Skip to content

Commit

Permalink
fix: HTONLL (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
kibae authored Jan 15, 2025
1 parent c4d7cf4 commit fe32c65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transport/tcp/tcp_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
#define NTOHLL(x) (x)
#else
#if WIN32
#define HTONLL(x) ((((uint64_t)htonl(x)) << 32) + htonl(x >> 32))
#define NTOHLL(x) ((((uint64_t)ntohl(x)) << 32) + ntohl(x >> 32))
#else
#define HTONLL(x) ((((uint64_t)htonl(x)) << 32) + htonl((uint64_t)x >> 32))
#define NTOHLL(x) ((((uint64_t)ntohl(x)) << 32) + ntohl((uint64_t)x >> 32))
#else
#define HTONLL(x) ((((uint64_t)htonl(x)) << 32) + htonl(x >> 32))
#define NTOHLL(x) ((((uint64_t)ntohl(x)) << 32) + ntohl(x >> 32))
#endif
#endif

Expand Down

0 comments on commit fe32c65

Please sign in to comment.