| commit | 0e51577a14f903ffeafa117a75954baeb173ffb9 | [log] [tgz] |
|---|---|---|
| author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 07 19:54:40 2013 +0000 |
| committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 07 19:54:40 2013 +0000 |
| tree | 3f3d849f3b6ec7778660f0da19f5d4175ba9f800 | |
| parent | af2bd7bdf593b3fc91bb1acffcc4a51bdb2f29ec [diff] [blame] |
fix warning from scalar --> int32 conversion BUG= Review URL: https://codereview.appspot.com/7065050 git-svn-id: http://skia.googlecode.com/svn/trunk@7061 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/animator/SkDisplayPost.cpp b/src/animator/SkDisplayPost.cpp index a50d5cc..21cc9a7 100644 --- a/src/animator/SkDisplayPost.cpp +++ b/src/animator/SkDisplayPost.cpp
@@ -235,7 +235,7 @@ const char* ch = sink.c_str(); do { const char* end = strchr(ch, '.'); - size_t len = end ? end - ch : strlen(ch); + size_t len = end ? (size_t) (end - ch) : strlen(ch); SkDisplayable* displayable = NULL; if (SK_LITERAL_STR_EQUAL("parent", ch, len)) { if (fTargetMaker->fParentMaker)