Skip to content
Snippets Groups Projects
Commit 3f4235da authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

infohash: fix alignment warning

parent e259cb08
No related branches found
No related tags found
No related merge requests found
......@@ -103,10 +103,7 @@ public:
static constexpr inline Hash zero() noexcept { return Hash{}; }
bool operator==(const Hash& h) const {
for (unsigned i=0; i < N; i++)
if (data_[i] != h.data_[i])
return false;
return true;
return data_ == h.data_;
}
bool operator!=(const Hash& h) const { return !(*this == h); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment