diff options
| author | Dean Rasheed <dean.a.rasheed@gmail.com> | 2021-01-05 11:51:21 +0000 |
|---|---|---|
| committer | Dean Rasheed <dean.a.rasheed@gmail.com> | 2021-01-05 11:51:21 +0000 |
| commit | 5777b6ea29a581f073c80ae48931adadcbc268d4 (patch) | |
| tree | f7c847c37209e04e25a829dc2e639ab57c557dc2 | |
| parent | e15c384d7acaa2d7d967f2d8feb6bb0d3b793b3d (diff) | |
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.
| -rw-r--r-- | src/backend/utils/adt/numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/numeric.c b/src/backend/utils/adt/numeric.c index 7582aa30432..7e47aa038e0 100644 --- a/src/backend/utils/adt/numeric.c +++ b/src/backend/utils/adt/numeric.c @@ -9370,7 +9370,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. |
