OSDN Git Service

bug fix.
authorvisor <visor@users.sourceforge.jp>
Wed, 16 May 2012 15:04:43 +0000 (00:04 +0900)
committervisor <visor@users.sourceforge.jp>
Wed, 16 May 2012 15:04:43 +0000 (00:04 +0900)
modules/ml-struct.cc

index 414edc8..26af869 100644 (file)
@@ -967,7 +967,7 @@ MNode*  ml_mapcar (MNode* cell, MlEnv* mlenv) {
     if (! arg)
        throw (uErrorWrongNumber);
     fn = eval (arg->car (), mlenv);
-    nextNode (arg);
+    nextNodeNonNil (arg);
     list = eval (arg->car (), mlenv);
     nextNode (arg);
     if (arg)