commit | bda74d33f6947b91648a650cd89d53eee408214d | [log] [tgz] |
---|---|---|
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Mar 14 15:25:45 2013 +0000 |
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Mar 14 15:25:45 2013 +0000 |
tree | 81ea640329784a8c1b64d744f142167da12113c5 | |
parent | 0e8eee7b8a8396cef4cf6f87081cd5364f141de5 [diff] |
fix (bool) warning with SkToBool git-svn-id: http://skia.googlecode.com/svn/trunk@8160 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/images/SkImageDecoder_libwebp.cpp b/src/images/SkImageDecoder_libwebp.cpp index dc3bc7d..d9434c2 100644 --- a/src/images/SkImageDecoder_libwebp.cpp +++ b/src/images/SkImageDecoder_libwebp.cpp
@@ -560,7 +560,7 @@ pic.width, colors); } - bool ok = (bool) WebPPictureImportRGB(&pic, rgb, rgbStride); + bool ok = SkToBool(WebPPictureImportRGB(&pic, rgb, rgbStride)); delete[] rgb; ok = ok && WebPEncode(&webp_config, &pic);