You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vxquery.apache.org by pr...@apache.org on 2012/08/16 01:52:11 UTC

svn commit: r1373676 - /incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/cast/CastToDoubleOperation.java

Author: prestonc
Date: Wed Aug 15 23:52:10 2012
New Revision: 1373676

URL: http://svn.apache.org/viewvc?rev=1373676&view=rev
Log:
Added up negatively so the max must be assigned as negative.

Modified:
    incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/cast/CastToDoubleOperation.java

Modified: incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/cast/CastToDoubleOperation.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/cast/CastToDoubleOperation.java?rev=1373676&r1=1373675&r2=1373676&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/cast/CastToDoubleOperation.java (original)
+++ incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/cast/CastToDoubleOperation.java Wed Aug 15 23:52:10 2012
@@ -170,7 +170,7 @@ public class CastToDoubleOperation exten
                             if (Double.isInfinite(t)) {
                                 valueDouble = Double.POSITIVE_INFINITY;
                             }
-                            t = Double.MAX_VALUE;
+                            t = -Double.MAX_VALUE;
                         }
                         valueDouble = t;
                     }