velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1145229 - /velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/MathTool.java
Date Mon, 11 Jul 2011 16:21:48 GMT
Author: cbrisson
Date: Mon Jul 11 16:21:47 2011
New Revision: 1145229

URL: http://svn.apache.org/viewvc?rev=1145229&view=rev
Log:
fix bitwise AND

Modified:
    velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/MathTool.java

Modified: velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/MathTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/MathTool.java?rev=1145229&r1=1145228&r2=1145229&view=diff
==============================================================================
--- velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/MathTool.java
(original)
+++ velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/MathTool.java
Mon Jul 11 16:21:47 2011
@@ -323,7 +323,7 @@ public class MathTool extends FormatConf
      */
     public Number bitwiseAnd(Object... nums)
     {
-        long value = Long.MIN_VALUE;
+        long value = -1;
         Number[] ns = new Number[nums.length];
         for (int i=0; i<nums.length; i++)
         {



Mime
View raw message