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

Unified Diff: core/cross/bitmap.cc

Issue 159168: This fixes a number of things that are warnings in the Mac compiler.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 months 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
Index: core/cross/bitmap.cc
===================================================================
--- core/cross/bitmap.cc (revision 21208)
+++ core/cross/bitmap.cc (working copy)
@@ -615,7 +615,7 @@
}
for (unsigned int c = 0; c < components; ++c) {
uint64 value = accum[c] / (src_height * src_width);
- DCHECK_LE(value, 255);
+ DCHECK_LE(value, 255u);
dst_data[(y * dst_width + x) * components + c] =
static_cast<unsigned char>(value);
}
« no previous file with comments | « core/cross/bitmap.h ('k') | core/cross/bitmap_dds.cc » ('j') | core/cross/bitmap_dds.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698