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

Unified Diff: src/base/atomic-utils.h

Issue 2496913002: Fix more -Wsign-compare warnings in heap, mips, base, etc. (Closed)
Patch Set: Created 4 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 | « no previous file | src/cancelable-task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/atomic-utils.h
diff --git a/src/base/atomic-utils.h b/src/base/atomic-utils.h
index fd9b1b502d573ea62a66c78f3e5daa7c2a27e2f8..f40853c587b09a0dd3c37473e7963ef676d17db6 100644
--- a/src/base/atomic-utils.h
+++ b/src/base/atomic-utils.h
@@ -127,7 +127,7 @@ class AtomicValue {
}
V8_INLINE void SetBits(T bits, T mask) {
- DCHECK_EQ(bits & ~mask, 0);
+ DCHECK_EQ(bits & ~mask, static_cast<T>(0));
T old_value;
T new_value;
do {
« no previous file with comments | « no previous file | src/cancelable-task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698