Skip to content

Commit

Permalink
fix MemIOCallback IOCallback write return type
Browse files Browse the repository at this point in the history
Missing from 701f7b2.

That API seems to be unused.
  • Loading branch information
robUx4 committed Feb 18, 2024
1 parent 3a015a4 commit d75e9a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ebml/MemIOCallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion src/MemIOCallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d75e9a1

Please sign in to comment.