From: <pj...@us...> - 2008-08-09 22:05:05
|
Revision: 5127 http://jython.svn.sourceforge.net/jython/?rev=5127&view=rev Author: pjenvey Date: 2008-08-09 22:05:00 +0000 (Sat, 09 Aug 2008) Log Message: ----------- typo/thinko pointed out by lsoto Modified Paths: -------------- branches/asm/src/org/python/core/PyFloat.java Modified: branches/asm/src/org/python/core/PyFloat.java =================================================================== --- branches/asm/src/org/python/core/PyFloat.java 2008-08-09 22:02:39 UTC (rev 5126) +++ branches/asm/src/org/python/core/PyFloat.java 2008-08-09 22:05:00 UTC (rev 5127) @@ -185,8 +185,9 @@ // with. If NaN, similarly. if (other instanceof PyInteger || other instanceof PyLong) { j = 0.0; + } else { + return -2; } - return -2; } else if (other instanceof PyInteger) { j = ((PyInteger)other).getValue(); } else if (other instanceof PyLong) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |