Index: samplecode/SampleShaderText.cpp |
diff --git a/samplecode/SampleShaderText.cpp b/samplecode/SampleShaderText.cpp |
index 603d67e38440c38385049c63b490f54035a4c6ec..6855824d3fb669946c032b68b2e025979e8ff659 100644 |
--- a/samplecode/SampleShaderText.cpp |
+++ b/samplecode/SampleShaderText.cpp |
@@ -186,7 +186,7 @@ protected: |
canvas->save(); |
for (size_t s = 0; s < SK_ARRAY_COUNT(shaders); s++) { |
canvas->save(); |
- int i = 2*s; |
+ size_t i = 2*s; |
canvas->translate(SkIntToScalar((i / testsPerCol) * colWidth), |
SkIntToScalar((i % testsPerCol) * rowHeight)); |
paint.setShader(shaders[s])->unref(); |