From d75e9a13bb4b6a4a3677fcfa4a58cba69446870f Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sun, 18 Feb 2024 10:53:22 +0100 Subject: [PATCH] fix MemIOCallback IOCallback write return type Missing from 701f7b2a290f4e8acbcd99a116a9c8a91d351de7. That API seems to be unused. --- ebml/MemIOCallback.h | 2 +- src/MemIOCallback.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ebml/MemIOCallback.h b/ebml/MemIOCallback.h index d80c63af..51db0c29 100644 --- a/ebml/MemIOCallback.h +++ b/ebml/MemIOCallback.h @@ -69,7 +69,7 @@ class EBML_DLL_API MemIOCallback : public IOCallback /*! Use this to write some data from another IOCallback */ - std::uint32_t write(IOCallback & IOToRead, std::size_t Size); + std::size_t write(IOCallback & IOToRead, std::size_t Size); bool IsOk() const { return mOk; } const std::string &GetLastErrorStr() const { return mLastErrorStr; } diff --git a/src/MemIOCallback.cpp b/src/MemIOCallback.cpp index 1b208fe5..c39538ab 100644 --- a/src/MemIOCallback.cpp +++ b/src/MemIOCallback.cpp @@ -78,7 +78,7 @@ std::size_t MemIOCallback::write(const void *Buffer, std::size_t Size) return Size; } -std::uint32_t MemIOCallback::write(IOCallback & IOToRead, std::size_t Size) +std::size_t MemIOCallback::write(IOCallback & IOToRead, std::size_t Size) { if (dataBufferPos + Size < Size) // overflow, we can't hold that much return 0;