From: <pj...@us...> - 2008-04-06 19:33:13
|
Revision: 4309 http://jython.svn.sourceforge.net/jython/?rev=4309&view=rev Author: pjenvey Date: 2008-04-06 12:33:09 -0700 (Sun, 06 Apr 2008) Log Message: ----------- make long() (no args) return a long instead of int Modified Paths: -------------- trunk/jython/src/org/python/core/PyLong.java Modified: trunk/jython/src/org/python/core/PyLong.java =================================================================== --- trunk/jython/src/org/python/core/PyLong.java 2008-04-06 17:07:20 UTC (rev 4308) +++ trunk/jython/src/org/python/core/PyLong.java 2008-04-06 19:33:09 UTC (rev 4309) @@ -35,7 +35,7 @@ int base = ap.getInt(1, -909); if (new_.for_type == subtype) { if (x == null) { - return Py.Zero; + return new PyLong(0); } Object o = x.__tojava__(BigInteger.class); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |