Index: src/ports/SkImageDecoder_CG.cpp |
diff --git a/src/ports/SkImageDecoder_CG.cpp b/src/ports/SkImageDecoder_CG.cpp |
index beb6ed11e49b8645ac9f64c290f88613647daf5f..90c282dc9b058765b0f48cf96733742fd56eea38 100644 |
--- a/src/ports/SkImageDecoder_CG.cpp |
+++ b/src/ports/SkImageDecoder_CG.cpp |
@@ -66,8 +66,8 @@ bool SkImageDecoder_CG::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { |
} |
SkAutoTCallVProc<CGImage, CGImageRelease> arimage(image); |
- const int width = CGImageGetWidth(image); |
- const int height = CGImageGetHeight(image); |
+ const int width = SkToInt(CGImageGetWidth(image)); |
+ const int height = SkToInt(CGImageGetHeight(image)); |
bm->setConfig(SkBitmap::kARGB_8888_Config, width, height); |
if (SkImageDecoder::kDecodeBounds_Mode == mode) { |
return true; |