From: Amos Jeffries Date: Sat, 30 Jul 2011 03:14:25 +0000 (+1200) Subject: Fix signed/unsigned comparison X-Git-Tag: take08~55^2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5694650914afda482449048955f53bde88f5e0f1;p=thirdparty%2Fsquid.git Fix signed/unsigned comparison --- diff --git a/src/auth/basic/UserRequest.cc b/src/auth/basic/UserRequest.cc index 1d2ceee1ba..bad3a2b16b 100644 --- a/src/auth/basic/UserRequest.cc +++ b/src/auth/basic/UserRequest.cc @@ -125,7 +125,7 @@ AuthBasicUserRequest::module_start(RH * handler, void *data) if (sz<=0) { debugs(9, DBG_CRITICAL, "ERROR: Basic Authentication Failure. Can not build helper validation request."); handler(data, NULL); - } else if (sz>=sizeof(buf)) { + } else if (static_cast(sz) >= sizeof(buf)) { debugs(9, DBG_CRITICAL, "ERROR: Basic Authentication Failure. user:password exceeds " << sizeof(buf) << " bytes."); handler(data, NULL); } else