| Index: src/core/SkPictureFlat.h
|
| diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h
|
| index 06a9840975fcc1bcaf4ab779223ef6c0e28b0b64..d92e4c45df6982cfb545a6e3c6cb564f27c6f9ef 100644
|
| --- a/src/core/SkPictureFlat.h
|
| +++ b/src/core/SkPictureFlat.h
|
| @@ -272,7 +272,7 @@ public:
|
| buffer.setFlags(controller->getWriteBufferFlags());
|
|
|
| Traits::flatten(buffer, obj);
|
| - uint32_t size = buffer.size();
|
| + size_t size = buffer.size();
|
| SkASSERT(SkIsAlign4(size));
|
|
|
| // Allocate enough memory to hold SkFlatData struct and the flat data itself.
|
| @@ -282,7 +282,7 @@ public:
|
| // Put the serialized contents into the data section of the new allocation.
|
| buffer.writeToMemory(result->data());
|
| // Stamp the index, size and checksum in the header.
|
| - result->stampHeader(index, size);
|
| + result->stampHeader(index, SkToS32(size));
|
| return result;
|
| }
|
|
|
|
|