| Index: gm/dftext.cpp
|
| diff --git a/gm/dftext.cpp b/gm/dftext.cpp
|
| index 16fe4bd385db9241c574cadc8698b0ee13a8caee..d501e586734272bf4e61dd504f1079e22b55cfca 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]);
|
|
|