Index: src/utils/debugger/SkObjectParser.cpp |
=================================================================== |
--- src/utils/debugger/SkObjectParser.cpp (revision 12322) |
+++ src/utils/debugger/SkObjectParser.cpp (working copy) |
@@ -335,9 +335,11 @@ |
} |
case SkPaint::kUTF16_TextEncoding: { |
decodedText->append("UTF-16: "); |
- size_t sizeNeeded = SkUTF16_ToUTF8((uint16_t*)text, byteLength / 2, NULL); |
+ size_t sizeNeeded = SkUTF16_ToUTF8((uint16_t*)text, |
+ SkToS32(byteLength / 2), |
+ NULL); |
SkAutoSTMalloc<0x100, char> utf8(sizeNeeded); |
- SkUTF16_ToUTF8((uint16_t*)text, byteLength / 2, utf8); |
+ SkUTF16_ToUTF8((uint16_t*)text, SkToS32(byteLength / 2), utf8); |
decodedText->append(utf8, sizeNeeded); |
break; |
} |