aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-18 19:00:47 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-18 19:00:47 +0000
commit087b313939fcbe07fc42e8c5281c153d96b0a0c1 (patch)
tree73cc11ef31cf403cef8651faf60fd8874e672d5c /src/utils
parent5db04dfad7dae105adcb82caf013f4775bfe1257 (diff)
Add cast to fix Win* compile complaint/failure
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/SkLua.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index bb24cac3b1..de035158d7 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -645,7 +645,7 @@ static int lpaint_getStrokeJoin(lua_State* L) {
}
static int lpaint_getTextEncoding(lua_State* L) {
- SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getTextEncoding());
+ SkLua(L).pushScalar(static_cast<SkScalar>(get_obj<SkPaint>(L, 1)->getTextEncoding()));
return 1;
}