From 3f4235da69df17ae6604bac635d862f09a5bab85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Mon, 27 Jun 2022 14:57:17 -0400
Subject: [PATCH] infohash: fix alignment warning

---
 include/opendht/infohash.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/include/opendht/infohash.h b/include/opendht/infohash.h
index d4f2c7e4..3811ea22 100644
--- a/include/opendht/infohash.h
+++ b/include/opendht/infohash.h
@@ -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); }
 
-- 
GitLab