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

Unified Diff: src/utils/SkNinePatch.cpp

Issue 27192003: Start cleaning up 64bit Win warnings (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: cleanup 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
Index: src/utils/SkNinePatch.cpp
===================================================================
--- src/utils/SkNinePatch.cpp (revision 11751)
+++ src/utils/SkNinePatch.cpp (working copy)
@@ -25,7 +25,7 @@
10, 15, 11, 10, 14, 15
};
-static int fillIndices(uint16_t indices[], int xCount, int yCount) {
+static size_t fillIndices(uint16_t indices[], int xCount, int yCount) {
uint16_t* startIndices = indices;
int n = 0;
@@ -203,7 +203,7 @@
if (numXDivs == 2 && numYDivs <= 2) {
mesh.fIndices = g3x3Indices;
} else {
- SkDEBUGCODE(int n =) fillIndices(indices, numXDivs + 1, numYDivs + 1);
+ SkDEBUGCODE(size_t n =) fillIndices(indices, numXDivs + 1, numYDivs + 1);
SkASSERT(n == indexCount);
mesh.fIndices = indices;
}

Powered by Google App Engine
This is Rietveld 408576698