Skip to content
Snippets Groups Projects
Commit 1525f468 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

std: fix implicit narrowing conversion

parent 7f24acaa
No related branches found
No related tags found
1 merge request!200clang tidy fixes
...@@ -6,7 +6,7 @@ ext::istream & oprr ( ext::istream & in, const std::string & str, bool start ) { ...@@ -6,7 +6,7 @@ ext::istream & oprr ( ext::istream & in, const std::string & str, bool start ) {
if ( str.empty ( ) ) return in; if ( str.empty ( ) ) return in;
   
char c_str = str[0]; char c_str = str[0];
char c_in = in.peek ( ); int c_in = in.peek ( );
in.get ( ); in.get ( );
   
if ( c_in == EOF ) { if ( c_in == EOF ) {
...@@ -25,7 +25,7 @@ ext::istream & oprr ( ext::istream & in, const std::string & str, bool start ) { ...@@ -25,7 +25,7 @@ ext::istream & oprr ( ext::istream & in, const std::string & str, bool start ) {
   
if ( in.fail ( ) ) { if ( in.fail ( ) ) {
in.clear ( ); in.clear ( );
in.putback ( c_in ); in.putback ( static_cast < char > ( c_in ) );
in.clear ( std::ios::failbit ); in.clear ( std::ios::failbit );
} }
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment