c wrapper: reverse is_zero value

This commit is contained in:
Adrien Béraud committed 2019-10-17 10:29:37 -04:00
1 parent 2b1d2fc3f6
commit b00dfdf572
1 file changed
+1 -1
+1 -1
View File
@@ -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<bool>(*reinterpret_cast<const dht::InfoHash*>(h));
return !static_cast<bool>(*reinterpret_cast<const dht::InfoHash*>(h));
}
const char* dht_pkid_print(const dht_pkid* h)