Index: src/codec/SkJpegCodec.cpp |
diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp |
index b834ecbafe5596ead625ffb21b7d8ec7383798f2..112078b97cc7ab3c572f5daeb2d72cf927a67294 100644 |
--- a/src/codec/SkJpegCodec.cpp |
+++ b/src/codec/SkJpegCodec.cpp |
@@ -84,8 +84,8 @@ SkJpegCodec::SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, |
/* |
* Return the row bytes of a particular image type and width |
*/ |
-static int get_row_bytes(const j_decompress_ptr dinfo) { |
- int colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 : dinfo->out_color_components; |
+static size_t get_row_bytes(const j_decompress_ptr dinfo) { |
+ size_t colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 : dinfo->out_color_components; |
return dinfo->output_width * colorBytes; |
} |