[armedbear-cvs] r11724 - trunk/abcl/src/org/armedbear/lisp/scripting

Erik Huelsmann ehuelsmann at common-lisp.net
Fri Apr 3 20:17:37 UTC 2009


Author: ehuelsmann
Date: Fri Apr  3 16:17:36 2009
New Revision: 11724

Log:
Make the scripting engine use the Bignum factory instead of the
(now private) constructor.

Patch by: Douglas Miles (logicmoo at gmail dot com)


Modified:
   trunk/abcl/src/org/armedbear/lisp/scripting/AbclScriptEngine.java

Modified: trunk/abcl/src/org/armedbear/lisp/scripting/AbclScriptEngine.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/scripting/AbclScriptEngine.java	(original)
+++ trunk/abcl/src/org/armedbear/lisp/scripting/AbclScriptEngine.java	Fri Apr  3 16:17:36 2009
@@ -311,9 +311,9 @@
 		} else if(javaObject instanceof Short) {
             return Fixnum.getInstance(((Short)javaObject).shortValue());
 		} else if(javaObject instanceof Long) {
-            return new Bignum((Long)javaObject);
+            return Bignum.getInstance((Long)javaObject);
 		} else if(javaObject instanceof BigInteger) {
-			return new Bignum((BigInteger) javaObject);
+			return Bignum.getInstance((BigInteger) javaObject);
 		} else if(javaObject instanceof Float) {
             return new SingleFloat(((Float)javaObject).floatValue());
 		} else if(javaObject instanceof Double) {




More information about the armedbear-cvs mailing list