Index: src/utils/SkLua.cpp |
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp |
index 8bc646f0c7137fa7fdda275a08cb26e84fb4015a..9bbdc6c6adb1e76b9c401ed68f727f3cf7fab81f 100644 |
--- a/src/utils/SkLua.cpp |
+++ b/src/utils/SkLua.cpp |
@@ -1029,7 +1029,7 @@ static int lrrect_type(lua_State* L) { |
} |
static int lrrect_radii(lua_State* L) { |
- int corner = lua_tointeger(L, 2); |
+ int corner = SkToInt(lua_tointeger(L, 2)); |
SkVector v; |
if (corner < 0 || corner > 3) { |
SkDebugf("bad corner index %d", corner); |