Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f0b9bad

Browse filesBrowse files
committed
Add an explicit cast to double when using fabs().
Commit bc43b7c used fabs() directly on an int variable, which apparently requires an explicit cast on some platforms. Per buildfarm.
1 parent 9a299df commit f0b9bad
Copy full SHA for f0b9bad

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/backend/utils/adt/numeric.c

Copy file name to clipboardExpand all lines: src/backend/utils/adt/numeric.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8182,7 +8182,7 @@ power_var_int(NumericVar *base, int exp, NumericVar *result, int rscale)
81828182
* to around log10(abs(exp)) digits, so work with this many extra digits
81838183
* of precision (plus a few more for good measure).
81848184
*/
8185-
sig_digits += (int) log(fabs(exp)) + 8;
8185+
sig_digits += (int) log(fabs((double) exp)) + 8;
81868186

81878187
/*
81888188
* Now we can proceed with the multiplications.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.