Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix MemIOCallback IOCallback write return type #257

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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