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

Unified Diff: bench/FontCacheBench.cpp

Issue 27343002: Second wave of Win64 warning cleanup (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Now compiling on Linux Created 7 years, 2 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
« no previous file with comments | « no previous file | src/core/SkPictureRecord.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/FontCacheBench.cpp
===================================================================
--- bench/FontCacheBench.cpp (revision 11775)
+++ bench/FontCacheBench.cpp (working copy)
@@ -15,7 +15,7 @@
#include "gUniqueGlyphIDs.h"
#define gUniqueGlyphIDs_Sentinel 0xFFFF
-static int count_glyphs(const uint16_t start[]) {
+static size_t count_glyphs(const uint16_t start[]) {
bsalomon 2013/10/15 17:35:20 this one looks like an int count to me, rest lgtm
robertphillips 2013/10/15 17:47:53 Done.
const uint16_t* curr = start;
while (*curr != gUniqueGlyphIDs_Sentinel) {
curr += 1;
@@ -134,7 +134,7 @@
int glyphs = 0;
const uint16_t* array = gUniqueGlyphIDs;
while (*array != gUniqueGlyphIDs_Sentinel) {
- int count = SkMin32(count_glyphs(array), limit);
+ int count = static_cast<int>(SkTMin<size_t>(count_glyphs(array), limit));
collisions += count_collisions(array, count, gRec[i].fHasher, hashMask);
glyphs += count;
array += count + 1; // skip the sentinel
« no previous file with comments | « no previous file | src/core/SkPictureRecord.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698