Index: tests/SkBase64Test.cpp |
diff --git a/tests/SkBase64Test.cpp b/tests/SkBase64Test.cpp |
index 14ff1f7717effbc02c64a22d4c43bd8a8b79a7b6..a5347687935b282577ae89269469bb0d94906f47 100644 |
--- a/tests/SkBase64Test.cpp |
+++ b/tests/SkBase64Test.cpp |
@@ -20,7 +20,7 @@ DEF_TEST(SkBase64, reporter) { |
size_t encodeLength = SkBase64::Encode(all + offset, length, NULL); |
SkAutoTMalloc<char> src(encodeLength + 1); |
SkBase64::Encode(all + offset, length, src.get()); |
- src[encodeLength] = '\0'; |
+ src[SkToInt(encodeLength)] = '\0'; |
SkBase64 tryMe; |
tryMe.decode(src.get(), encodeLength); |
REPORTER_ASSERT(reporter, (strcmp((const char*) (all + offset), tryMe.getData()) == 0)); |