aboutsummaryrefslogtreecommitdiff
path: root/tests/UnicodeTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UnicodeTest.cpp')
-rw-r--r--tests/UnicodeTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/UnicodeTest.cpp b/tests/UnicodeTest.cpp
index 04fee49608..1293fb6afb 100644
--- a/tests/UnicodeTest.cpp
+++ b/tests/UnicodeTest.cpp
@@ -69,9 +69,9 @@ static void test_textencodings(skiatest::Reporter* reporter) {
paint.setTextEncoding(SkPaint::kUTF32_TextEncoding);
int count32 = paint.textToGlyphs(text32, len32, glyphs32);
- REPORTER_ASSERT(reporter, len8 == count8);
- REPORTER_ASSERT(reporter, len8 == count16);
- REPORTER_ASSERT(reporter, len8 == count32);
+ REPORTER_ASSERT(reporter, (int)len8 == count8);
+ REPORTER_ASSERT(reporter, (int)len8 == count16);
+ REPORTER_ASSERT(reporter, (int)len8 == count32);
REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs16, count8 * sizeof(uint16_t)));
REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs32, count8 * sizeof(uint16_t)));