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;