We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea19c71 commit 850d4d6Copy full SHA for 850d4d6
ProgramOptions.hxx
@@ -638,15 +638,15 @@ namespace po {
638
if( !valid )
639
return error_code::conversion_error;
640
if( expect( first, last, 'e' ) ) {
641
- const bool neg = expect( first, last, '-' );
642
- if( !neg )
+ const bool neg_exp = expect( first, last, '-' );
+ if( !neg_exp )
643
expect( first, last, '+' );
644
if( first == last || !is_digit( *first ) )
645
646
int exp{};
647
for( int d{}; first != last && ( d = get_digit( *first ) ) >= 0; ++first )
648
exp = 10 * exp + static_cast< int >( d );
649
- if( neg )
+ if( neg_exp )
650
exp = -exp;
651
result *= std::pow( T{ 10 }, exp );
652
}
0 commit comments