mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-05 09:16:51 +02:00
Add an explicit cast to double when using fabs().
Commit bc43b7c2c0
used fabs() directly on an int variable, which
apparently requires an explicit cast on some platforms.
Per buildfarm.
This commit is contained in:
parent
258b770055
commit
740780a615
@ -8601,7 +8601,7 @@ power_var_int(const NumericVar *base, int exp, NumericVar *result, int rscale)
|
||||
* to around log10(abs(exp)) digits, so work with this many extra digits
|
||||
* of precision (plus a few more for good measure).
|
||||
*/
|
||||
sig_digits += (int) log(fabs(exp)) + 8;
|
||||
sig_digits += (int) log(fabs((double) exp)) + 8;
|
||||
|
||||
/*
|
||||
* Now we can proceed with the multiplications.
|
||||
|
Loading…
Reference in New Issue
Block a user