Skip to content

Commit

Permalink
Fix another implicit casting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 9, 2020
1 parent 59027a0 commit 2f3987b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsfield.cpp
Expand Up @@ -472,7 +472,7 @@ bool QgsField::convertCompatible( QVariant &v, QString *errorMessage ) const
}

double round = std::round( dbl );
if ( round > std::numeric_limits<long long>::max() || round < -std::numeric_limits<long long>::max() )
if ( round > static_cast<double>( std::numeric_limits<long long>::max() ) || round < static_cast<double>( -std::numeric_limits<long long>::max() ) )
{
//double too large to fit in longlong
v = QVariant( d->type );
Expand Down

0 comments on commit 2f3987b

Please sign in to comment.