Index: src/core/SkPictureFlat.h |
diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h |
index 49281146607a71674939920d2f78ceee0e04df5b..5d1a6b52d6e32ffaee9678f98c18a492279c25ed 100644 |
--- a/src/core/SkPictureFlat.h |
+++ b/src/core/SkPictureFlat.h |
@@ -529,7 +529,7 @@ private: |
// Reinterpret data in fScratch as an SkFlatData. |
SkFlatData* scratch = (SkFlatData*)fScratch.getWriter32()->contiguousArray(); |
SkASSERT(scratch != NULL); |
- scratch->stampHeader(index, dataSize); |
+ scratch->stampHeader(index, SkToS32(dataSize)); |
return *scratch; |
} |