diff --git a/c/opendht.cpp b/c/opendht.cpp index 6f9770c5..ba453c31 100644 --- a/c/opendht.cpp +++ b/c/opendht.cpp @@ -30,7 +30,7 @@ void dht_infohash_get(dht_infohash* h, const uint8_t* dat, size_t dat_size) } bool dht_infohash_is_zero(const dht_infohash* h) { - return static_cast(*reinterpret_cast(h)); + return !static_cast(*reinterpret_cast(h)); } const char* dht_pkid_print(const dht_pkid* h)