Author: ruschein
Date: 2010-11-08 14:09:40 -0800 (Mon, 08 Nov 2010)
New Revision: 22759

Modified:
   
cytoscape/trunk/corelibs/equations/src/main/java/org/cytoscape/equations/EquationUtil.java
Log:
Fixed a corner case.

Modified: 
cytoscape/trunk/corelibs/equations/src/main/java/org/cytoscape/equations/EquationUtil.java
===================================================================
--- 
cytoscape/trunk/corelibs/equations/src/main/java/org/cytoscape/equations/EquationUtil.java
  2010-11-08 20:26:01 UTC (rev 22758)
+++ 
cytoscape/trunk/corelibs/equations/src/main/java/org/cytoscape/equations/EquationUtil.java
  2010-11-08 22:09:40 UTC (rev 22759)
@@ -57,7 +57,7 @@
                        throw new IllegalArgumentException("floating point 
value is too large to be converted to a Long!");
 
                double x = ((Double)d).longValue();
-               if (x != d && x < 0.0)
+               if (x != d && d < 0.0)
                        --x;
 
                return (long)x;

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to