mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-20 14:52:24 +00:00
Suppress MSVC warning
warning C4244: 'argument': conversion from 'int' to 'char', possible loss of data This caused the Boost.Units regression tests to fail on MSVC because of warnings-as-errors.
This commit is contained in:
@@ -1735,7 +1735,7 @@ inline std::string read_string_while(std::istream& is, std::string const& permit
|
||||
else if(permitted_chars.find_first_of(std::istream::traits_type::to_char_type(c)) == std::string::npos)
|
||||
{
|
||||
// Invalid numeric character, stop reading:
|
||||
is.rdbuf()->sputbackc(c);
|
||||
is.rdbuf()->sputbackc(static_cast<char>(c));
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user