summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-22 23:19:03 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-22 23:19:03 +0000
commit6df28eff4c61f0bf17a4dc54a72abfeddb5427a7 (patch)
tree7c65e4c5cba2898edeb37605ee17bae20f4c2e18 /net
parentc408471a14e3f0db21a22fdc80b44e51bf5cd03f (diff)
downloadchromium_src-6df28eff4c61f0bf17a4dc54a72abfeddb5427a7.zip
chromium_src-6df28eff4c61f0bf17a4dc54a72abfeddb5427a7.tar.gz
chromium_src-6df28eff4c61f0bf17a4dc54a72abfeddb5427a7.tar.bz2
Fix spurious gcc warning
net/base/net_util.cc:176: warning: suggest parentheses around && within || git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1261 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/net_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index 4e7fab7..1bfb6e9 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -173,7 +173,7 @@ STR GetSpecificHeaderT(const STR& headers, const STR& name) {
// TODO(jungshik): We have almost identical hex-decoding code else where.
// Consider refactoring and moving it somewhere(base?). Bug 1224311
inline bool IsHexDigit(unsigned char c) {
- return ('0' <= c && c <= '9' || 'A' <= c && c <= 'F' || 'a' <= c && c <= 'f');
+ return (('0' <= c && c <= '9') || ('A' <= c && c <= 'F') || ('a' <= c && c <= 'f'));
}
inline unsigned char HexToInt(unsigned char c) {