aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/dftext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/dftext.cpp')
-rwxr-xr-xgm/dftext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/dftext.cpp b/gm/dftext.cpp
index 16fe4bd385..d501e58673 100755
--- a/gm/dftext.cpp
+++ b/gm/dftext.cpp
@@ -138,8 +138,8 @@ protected:
canvas->scale(2.0f, 2.0f);
- SkAutoTArray<SkPoint> pos(textLen);
- SkAutoTArray<SkScalar> widths(textLen);
+ SkAutoTArray<SkPoint> pos(SkToInt(textLen));
+ SkAutoTArray<SkScalar> widths(SkToInt(textLen));
paint.setTextSize(textSizes[0]);
paint.getTextWidths(text, textLen, &widths[0]);