From a90a5cba08fdf6c0ceb95101c275108a152a3aed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:37 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- gfx/ots/include/ots-memory-stream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx/ots/include') diff --git a/gfx/ots/include/ots-memory-stream.h b/gfx/ots/include/ots-memory-stream.h index cb844709c2..ec0b362fea 100644 --- a/gfx/ots/include/ots-memory-stream.h +++ b/gfx/ots/include/ots-memory-stream.h @@ -26,7 +26,7 @@ class MemoryStream : public OTSStream { return false; } std::memcpy(static_cast(ptr_) + off_, data, length); - off_ += length; + off_ += static_cast(length); return true; } @@ -82,7 +82,7 @@ class ExpandingMemoryStream : public OTSStream { return WriteRaw(data, length); } std::memcpy(static_cast(ptr_) + off_, data, length); - off_ += length; + off_ += static_cast(length); return true; } -- cgit v1.2.3