diff --git a/source/os/src/osSocket.c b/source/os/src/osSocket.c index 679fd8a8b6..5a97343e87 100644 --- a/source/os/src/osSocket.c +++ b/source/os/src/osSocket.c @@ -1122,7 +1122,7 @@ uint64_t taosHton64(uint64_t val) { uint64_t taosNtoh64(uint64_t val) { #if defined(WINDOWS) || defined(DARWIN) - taosHton64(val); + return taosHton64(val); #else if (__BYTE_ORDER == __LITTLE_ENDIAN) { return (((uint64_t)htonl((int)((val << 32) >> 32))) << 32) | (unsigned int)htonl((int)(val >> 32));