| Index: Source/core/svg/SVGPathByteStreamSource.h
|
| diff --git a/Source/core/svg/SVGPathByteStreamSource.h b/Source/core/svg/SVGPathByteStreamSource.h
|
| index 0875ef796175e507d9e77639d3663c0208173beb..17ff6988006203c4bda81985be09e7fa56577f2d 100644
|
| --- a/Source/core/svg/SVGPathByteStreamSource.h
|
| +++ b/Source/core/svg/SVGPathByteStreamSource.h
|
| @@ -60,13 +60,9 @@ private:
|
| {
|
| ByteType<DataType> data;
|
| size_t typeSize = sizeof(ByteType<DataType>);
|
| -
|
| - for (size_t i = 0; i < typeSize; ++i) {
|
| - ASSERT(m_streamCurrent < m_streamEnd);
|
| - data.bytes[i] = *m_streamCurrent;
|
| - ++m_streamCurrent;
|
| - }
|
| -
|
| + ASSERT(m_streamCurrent + typeSize <= m_streamEnd);
|
| + memcpy(data.bytes, m_streamCurrent, typeSize);
|
| + m_streamCurrent += typeSize;
|
| return data.value;
|
| }
|
|
|
|
|