mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
c wrapper: reverse is_zero value
This commit is contained in:
1 parent
2b1d2fc3f6
commit
b00dfdf572
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user