From cd487b072658fdb113c7d18fccb9bbb59bf74391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Tue, 18 May 2021 12:49:05 -0400 Subject: [PATCH] ip_utils: fix warning Change-Id: Ida774d4151ce0d8207c8669d7f136dfaed006955 --- src/ip_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ip_utils.h b/src/ip_utils.h index f8abd98cf6..f42c0c3747 100644 --- a/src/ip_utils.h +++ b/src/ip_utils.h @@ -92,7 +92,7 @@ public: IpAddr(const pj_sockaddr& ip, socklen_t len) : addr() { - if (len > sizeof(addr)) + if (len > static_cast<socklen_t>(sizeof(addr))) throw std::invalid_argument("IpAddr(): length overflows internal storage type"); memcpy(&addr, &ip, len); } -- GitLab