Index: src/images/SkJpegUtility.cpp |
=================================================================== |
--- src/images/SkJpegUtility.cpp (revision 11775) |
+++ src/images/SkJpegUtility.cpp (working copy) |
@@ -69,9 +69,9 @@ |
skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src; |
if (num_bytes > (long)src->bytes_in_buffer) { |
- long bytesToSkip = num_bytes - src->bytes_in_buffer; |
+ size_t bytesToSkip = num_bytes - src->bytes_in_buffer; |
while (bytesToSkip > 0) { |
- long bytes = (long)src->fStream->skip(bytesToSkip); |
+ size_t bytes = src->fStream->skip(bytesToSkip); |
if (bytes <= 0 || bytes > bytesToSkip) { |
// SkDebugf("xxxxxxxxxxxxxx failure to skip request %d returned %d\n", bytesToSkip, bytes); |
cinfo->err->error_exit((j_common_ptr)cinfo); |