Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit740780a

Browse files
committed
Add an explicit cast to double when using fabs().
Commitbc43b7c used fabs() directly on an int variable, whichapparently requires an explicit cast on some platforms.Per buildfarm.
1 parent258b770 commit740780a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8601,7 +8601,7 @@ power_var_int(const NumericVar *base, int exp, NumericVar *result, int rscale)
86018601
* to around log10(abs(exp)) digits, so work with this many extra digits
86028602
* of precision (plus a few more for good measure).
86038603
*/
8604-
sig_digits+= (int)log(fabs(exp))+8;
8604+
sig_digits+= (int)log(fabs((double)exp))+8;
86058605

86068606
/*
86078607
* Now we can proceed with the multiplications.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp