Index: src/utils/SkLuaCanvas.cpp |
diff --git a/src/utils/SkLuaCanvas.cpp b/src/utils/SkLuaCanvas.cpp |
index 7e1d5a8fe2682a8369ac7c4c3d604116c4ff9f59..531cbb00642e0400f6cd4fd3b2788c71b5e244e5 100644 |
--- a/src/utils/SkLuaCanvas.cpp |
+++ b/src/utils/SkLuaCanvas.cpp |
@@ -168,7 +168,7 @@ void SkLuaCanvas::drawPaint(const SkPaint& paint) { |
void SkLuaCanvas::drawPoints(PointMode mode, size_t count, |
const SkPoint pts[], const SkPaint& paint) { |
AUTO_LUA("drawPoints"); |
- lua.pushArrayPoint(pts, count, "points"); |
+ lua.pushArrayPoint(pts, SkToInt(count), "points"); |
lua.pushPaint(paint, "paint"); |
} |