Index: src/core/SkWriteBuffer.cpp |
diff --git a/src/core/SkWriteBuffer.cpp b/src/core/SkWriteBuffer.cpp |
index a295a8c88c2b05be4e8c28eb4a445e3788dc2c9b..07e8252ed8a8c5800c46ba3b81d4fa415f94ab80 100644 |
--- a/src/core/SkWriteBuffer.cpp |
+++ b/src/core/SkWriteBuffer.cpp |
@@ -321,5 +321,5 @@ void SkWriteBuffer::writeFlattenable(const SkFlattenable* flattenable) { |
flattenable->flatten(*this); |
uint32_t objSize = fWriter.bytesWritten() - offset; |
// record the obj's size |
- *fWriter.peek32(offset - sizeof(uint32_t)) = objSize; |
+ fWriter.write32At(offset - sizeof(uint32_t), objSize); |
} |