|
@@ -152,7 +152,7 @@ public class LispEval {
|
|
|
BigInteger resultInt = new BigInteger("0");
|
|
|
while(!lisp.isEmpty()){
|
|
|
LispElement eltInt = eval.getElement(lisp.car());
|
|
|
- if(eltInt.value.getClass() != BigInteger.class) break;
|
|
|
+ if(eltInt.getValue().getClass() != BigInteger.class) break;
|
|
|
resultInt = resultInt.add(eltInt.toInt());
|
|
|
lisp = lisp.cdr();
|
|
|
}
|
|
@@ -171,7 +171,7 @@ public class LispEval {
|
|
|
BigInteger resultInt = new BigInteger("1");
|
|
|
while(!lisp.isEmpty()){
|
|
|
LispElement eltInt = eval.getElement(lisp.car());
|
|
|
- if(eltInt.value.getClass() != BigInteger.class) break;
|
|
|
+ if(eltInt.getValue().getClass() != BigInteger.class) break;
|
|
|
resultInt = resultInt.multiply(eltInt.toInt());
|
|
|
lisp = lisp.cdr();
|
|
|
}
|