(scm_srfi1_member): Correction to pred call arg order, srfi
authorKevin Ryde <user42@zip.com.au>
Sun, 23 Jan 2005 21:02:13 +0000 (21:02 +0000)
committerKevin Ryde <user42@zip.com.au>
Sun, 23 Jan 2005 21:02:13 +0000 (21:02 +0000)
spec is (PRED X elem).

srfi/srfi-1.c

index d6432bb..280089f 100644 (file)
@@ -737,7 +737,7 @@ SCM_DEFINE (scm_srfi1_member, "member", 2, 1, 0,
     }
   for (; !SCM_NULL_OR_NIL_P (lst); lst = SCM_CDR (lst))
     {
-      if (scm_is_true (equal_p (pred, SCM_CAR (lst), x)))
+      if (scm_is_true (equal_p (pred, x, SCM_CAR (lst))))
        return lst;
     }
   return SCM_BOOL_F;