Skip to content

Commit

Permalink
fix conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 12, 2018
1 parent d7fb5f9 commit 827cfbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgis.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ inline bool qgsDoubleNearSig( double a, double b, int significantDigits = 10 )
*/
inline double qgsRound( double number, double places )
{
int scaleFactor = std::pow( 10, places );
int scaleFactor = static_cast<int>( std::pow( 10, places ) );
return static_cast<double>( static_cast<qlonglong>( number * scaleFactor + 0.5 ) ) / scaleFactor;
}

Expand Down

0 comments on commit 827cfbc

Please sign in to comment.