Skip to content

Commit

Permalink
fix(core): fix an implicit conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Nov 23, 2024
1 parent 14d8a55 commit 5f80bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/istream_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ std::size_t istream_adapter::read(char *buf, std::size_t size)
if (src_.eof())
return 0;

if (!src_.read(buf, size))
if (!src_.read(buf, static_cast<std::streamsize>(size)))
{
if (!src_.eof())
{
Expand Down

0 comments on commit 5f80bdd

Please sign in to comment.