From fbaace082745a0e301186b2d3b84af62e2fb87ec Mon Sep 17 00:00:00 2001 From: bsalomon Date: Fri, 12 Dec 2014 16:41:46 -0800 Subject: DM warning-free on win64 Review URL: https://codereview.chromium.org/805543002 --- tests/PaintTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/PaintTest.cpp') diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp index c307aa94bc..bf22de1daf 100644 --- a/tests/PaintTest.cpp +++ b/tests/PaintTest.cpp @@ -21,7 +21,7 @@ static size_t uni_to_utf8(const SkUnichar src[], void* dst, int count) { char* u8 = (char*)dst; for (int i = 0; i < count; ++i) { - int n = SkUTF8_FromUnichar(src[i], u8); + int n = SkToInt(SkUTF8_FromUnichar(src[i], u8)); u8 += n; } return u8 - (char*)dst; @@ -30,7 +30,7 @@ static size_t uni_to_utf8(const SkUnichar src[], void* dst, int count) { static size_t uni_to_utf16(const SkUnichar src[], void* dst, int count) { uint16_t* u16 = (uint16_t*)dst; for (int i = 0; i < count; ++i) { - int n = SkUTF16_FromUnichar(src[i], u16); + int n = SkToInt(SkUTF16_FromUnichar(src[i], u16)); u16 += n; } return (char*)u16 - (char*)dst; -- cgit v1.2.3