Index: src/images/SkImageDecoder_libico.cpp |
diff --git a/src/images/SkImageDecoder_libico.cpp b/src/images/SkImageDecoder_libico.cpp |
index 5240d09b8672dbdd1980b27bf7d959b8dbcb425f..b9b5c6a4537c36085a5023267c75ebff59cdd734 100644 |
--- a/src/images/SkImageDecoder_libico.cpp |
+++ b/src/images/SkImageDecoder_libico.cpp |
@@ -229,7 +229,7 @@ SkImageDecoder::Result SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* b |
//int colorsUsed = read4Bytes(buf, offset+32) //0 - might have an actual value though |
//int colorsImportant = read4Bytes(buf, offset+36); //0 |
- int begin = offset + 40; |
+ int begin = SkToInt(offset + 40); |
//this array represents the colortable |
//if i allow other types of bitmaps, it may actually be used as a part of the bitmap |
SkPMColor* colors = NULL; |