Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: chrome/browser/chromeos/web_socket_proxy.cc

Issue 11366060: Clang: enable -Wtautological-constant-out-of-range-compare (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address thakis's comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/web_socket_proxy.cc
diff --git a/chrome/browser/chromeos/web_socket_proxy.cc b/chrome/browser/chromeos/web_socket_proxy.cc
index 0eecd1d885893e7b1a3d6626880ec6de004aadb0..425f25f8b963d58621d851d9cc22ffe123547a12 100644
--- a/chrome/browser/chromeos/web_socket_proxy.cc
+++ b/chrome/browser/chromeos/web_socket_proxy.cc
@@ -1310,7 +1310,7 @@ bool Conn::EmitFrame(
uint8 header[10];
int header_size = 2;
DCHECK(chan);
- DCHECK(opcode >= 0 && opcode < 16);
+ DCHECK(opcode >= 0 && static_cast<int>(opcode) < 16);
header[0] = opcode | 0x80; // FIN bit set.
if (size < 126) {
header[1] = size;
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698