|
From: <pj...@us...> - 2010-06-03 02:38:49
|
Revision: 7062
http://jython.svn.sourceforge.net/jython/?rev=7062&view=rev
Author: pjenvey
Date: 2010-06-03 02:38:42 +0000 (Thu, 03 Jun 2010)
Log Message:
-----------
simplify
Modified Paths:
--------------
trunk/jython/src/org/python/core/PyObject.java
Modified: trunk/jython/src/org/python/core/PyObject.java
===================================================================
--- trunk/jython/src/org/python/core/PyObject.java 2010-06-01 23:30:30 UTC (rev 7061)
+++ trunk/jython/src/org/python/core/PyObject.java 2010-06-03 02:38:42 UTC (rev 7062)
@@ -281,9 +281,9 @@
// convert faux floats
// XXX: should also convert faux ints, but that breaks test_java_visibility
// (ReflectedArgs resolution)
- if (c == Double.TYPE || c == Double.class || c == Float.TYPE || c == Float.class) {
+ if (c == Double.class || c == Float.class) {
try {
- return __float__().getValue();
+ return __float__().asDouble();
} catch (PyException pye) {
if (!pye.match(Py.AttributeError)) {
throw pye;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|