Explorar o código

Meilleur gestion long

Arthur Brandao %!s(int64=6) %!d(string=hai) anos
pai
achega
417e44d6cf
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/migl/lisp/LispElement.java

+ 1 - 2
src/migl/lisp/LispElement.java

@@ -195,8 +195,7 @@ public class LispElement {
 			elt = LispBoolean.valueOf((boolean) elt);
 		}
 		else if(elt.getClass() == Long.class) {
-			Long l = (Long) elt;
-			elt = l.doubleValue();
+			elt = BigInteger.valueOf((long) elt);
 		}
 		else if(elt.getClass() != BigInteger.class && elt.getClass() != Double.class && elt.getClass() != LispBoolean.class && elt.getClass() != String.class) {
 			throw new IllegalArgumentException("Object class is not a Lisp element");