From 60a133cc3a82a81fd61a74dc178571d7822031ad Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Wed, 28 Oct 2020 12:50:53 +0200 Subject: [PATCH] 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] --- pdns/misc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2