Index: gm/glyph_pos_align.cpp |
diff --git a/gm/glyph_pos_align.cpp b/gm/glyph_pos_align.cpp |
index 9a94e75b928f67e88b3fbc63ff3fa43c137834be..887737921783ef4bc6d59e6bbbefdbb19727690f 100644 |
--- a/gm/glyph_pos_align.cpp |
+++ b/gm/glyph_pos_align.cpp |
@@ -59,7 +59,7 @@ protected: |
SkScalar widths[kMaxStringLength]; |
SkScalar posX[kMaxStringLength]; |
SkPoint pos[kMaxStringLength]; |
- int length = strlen(text); |
+ int length = SkToInt(strlen(text)); |
SkASSERT(length <= kMaxStringLength); |
paint.getTextWidths(text, length, widths); |