Skip to content

Commit 3fb84fd

Browse files
committed
Explicit cast
1 parent 5636a2c commit 3fb84fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/json/big_list_of_naughty_strings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ std::string get_file_contents( const char* filename )
1717
if( in ) {
1818
std::string contents;
1919
in.seekg( 0, std::ios::end );
20-
contents.resize( in.tellg() );
20+
contents.resize( static_cast< std::string::size_type >( in.tellg() ) );
2121
in.seekg( 0, std::ios::beg );
2222
in.read( &contents[ 0 ], contents.size() );
2323
in.close();

0 commit comments

Comments
 (0)