File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.139 2007/01/03 22: 05:00 momjian Exp $
11
+ * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.140 2007/01/04 05:18:39 momjian Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -1453,7 +1453,8 @@ dpow(PG_FUNCTION_ARGS)
1453
1453
if (errno == EDOM && isnan (result ))
1454
1454
{
1455
1455
if ((fabs (arg1 ) > 1 && arg2 >= 0 ) || (fabs (arg1 ) < 1 && arg2 < 0 ))
1456
- result = (arg1 >= 0 ) ? get_float8_infinity () : - get_float8_infinity ();
1456
+ /* The sign if Inf is not significant in this case. */
1457
+ result = get_float8_infinity ();
1457
1458
else if (fabs (arg1 ) != 1 )
1458
1459
result = 0 ;
1459
1460
else
You can’t perform that action at this time.
0 commit comments