Procházet zdrojové kódy

Meilleur gestion long

Arthur Brandao před 6 roky
rodič
revize
417e44d6cf
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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");