Index: src/core/SkFlate.cpp |
diff --git a/src/core/SkFlate.cpp b/src/core/SkFlate.cpp |
index 8258cdcd1d5c7a590886050e6197a865015cef26..2b4e36d7271ea99fe11e8ac2b302d5b8fed4f28a 100644 |
--- a/src/core/SkFlate.cpp |
+++ b/src/core/SkFlate.cpp |
@@ -61,7 +61,7 @@ bool doFlate(bool compress, SkStream* src, SkWStream* dst) { |
flateData.avail_in = 0; |
} else { |
flateData.next_in = input; |
- flateData.avail_in = inputLength; |
+ flateData.avail_in = SkToUInt(inputLength); |
} |
rc = Z_OK; |
@@ -83,7 +83,7 @@ bool doFlate(bool compress, SkStream* src, SkWStream* dst) { |
if (read == 0) |
break; |
flateData.next_in = inputBuffer; |
- flateData.avail_in = read; |
+ flateData.avail_in = SkToUInt(read); |
} |
if (compress) |
rc = deflate(&flateData, Z_NO_FLUSH); |