Index: tests/FlateTest.cpp |
diff --git a/tests/FlateTest.cpp b/tests/FlateTest.cpp |
index 75c6f3f9c66b70b6a5093360e573f70782f84f51..9f6a5b5f432c7ecc8bdd9cb9db1af79d54060eed 100644 |
--- a/tests/FlateTest.cpp |
+++ b/tests/FlateTest.cpp |
@@ -30,7 +30,7 @@ public: |
static SkData* new_test_data(size_t dataSize) { |
SkAutoTMalloc<uint8_t> testBuffer(dataSize); |
for (size_t i = 0; i < dataSize; ++i) { |
- testBuffer[i] = i % 64; |
+ testBuffer[SkToInt(i)] = i % 64; |
} |
return SkData::NewFromMalloc(testBuffer.detach(), dataSize); |
} |