1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Refs codership/wsrep-lib#124 32-bit compilation fix

This commit is contained in:
Alexey Yurchenko
2020-03-20 13:52:50 +00:00
parent dcdd7435bd
commit 0cec027030

View File

@ -61,19 +61,19 @@ ssize_t wsrep::scan_from_c_str(
{
std::istringstream is(std::string(buf, buf_len));
is >> gtid;
// Whole string was consumed without failures
if (is && is.eof())
{
return static_cast<ssize_t>(buf_len);
}
// Some failure occurred
if (!is)
{
return -EINVAL;
}
// Whole string was consumed without failures
if (is.eof())
{
return static_cast<ssize_t>(buf_len);
}
// The string was not consumed completely, return current position
// of the istream.
return is.tellg();
return static_cast<ssize_t>(is.tellg());
}
ssize_t wsrep::print_to_c_str(