From: Aki Tuomi Date: Wed, 28 Oct 2020 10:50:53 +0000 (+0200) Subject: pdns: setPipeBufferSize - Fix comparison sign mismatch X-Git-Tag: auth-4.4.0-alpha2~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60a133cc3a82a81fd61a74dc178571d7822031ad;p=thirdparty%2Fpdns.git pdns: setPipeBufferSize - Fix comparison sign mismatch Fixes compiler warning misc.cc:1513:12: warning: comparison of integer expressions of different signedness: size_t {aka long unsigned int} and int [-Wsign-compare] --- diff --git a/pdns/misc.cc b/pdns/misc.cc index a9b75ac8db..75918cb49e 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -1510,7 +1510,7 @@ size_t getPipeBufferSize(int fd) bool setPipeBufferSize(int fd, size_t size) { #ifdef F_SETPIPE_SZ - if (size > std::numeric_limits::max()) { + if (size > static_cast(std::numeric_limits::max())) { errno = EINVAL; return false; }