Skip to content

Commit

Permalink
Fix conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 8, 2020
1 parent 03f070d commit 59027a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -404,7 +404,7 @@ static QVariant fcnRndF( const QVariantList &values, const QgsExpressionContext
}

// Return a random double in the range [min, max] (inclusive)
double f = static_cast< double >( generator() ) / generator.max();
double f = static_cast< double >( generator() ) / static_cast< double >( generator.max() );
return QVariant( min + f * ( max - min ) );
}
static QVariant fcnRnd( const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent, const QgsExpressionNodeFunction * )
Expand Down

0 comments on commit 59027a0

Please sign in to comment.