Chromium Code Reviews| Index: src/animator/SkScript.cpp |
| diff --git a/src/animator/SkScript.cpp b/src/animator/SkScript.cpp |
| index c74b195f3a8c7673275104b5122eead18496bd0e..934b0abe1a1a4729d1497b9f2eb139c53cb3fe7c 100644 |
| --- a/src/animator/SkScript.cpp |
| +++ b/src/animator/SkScript.cpp |
| @@ -1532,11 +1532,11 @@ bool SkScriptEngine::ConvertTo(SkScriptEngine* engine, SkDisplayTypes toType, Sk |
| SkString* strPtr = new SkString(); |
| SkASSERT(engine); |
| engine->track(strPtr); |
| - if (type == SkType_Int) |
| + if (type == SkType_Int) { |
| strPtr->appendS32(operand.fS32); |
| - else if (type == SkType_Displayable) |
| + } else if (type == SkType_Displayable) { |
| SkASSERT(0); // must call through instance version instead of static version |
|
sugoi
2013/12/03 16:10:22
I had a minor issue here when I replaced SkASSERT
|
| - else { |
| + } else { |
| if (type != SkType_Float) { |
| success = false; |
| break; |