unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* cvs srfi-1 member call arg order
@ 2005-01-23 21:01 Kevin Ryde
  0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2005-01-23 21:01 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

        * srfi-1.c (scm_srfi1_member): Correction to pred call arg order, srfi
        spec is (PRED X elem).

1.6 is ok, this crept in with the conversion to C.


[-- Attachment #2: srfi-1.c.member.diff --]
[-- Type: text/plain, Size: 531 bytes --]

Index: srfi-1.c
===================================================================
RCS file: /cvsroot/guile/guile/guile-core/srfi/srfi-1.c,v
retrieving revision 1.18
diff -u -u -r1.18 srfi-1.c
--- srfi-1.c	10 Jan 2005 01:50:29 -0000	1.18
+++ srfi-1.c	23 Jan 2005 20:59:16 -0000
@@ -737,7 +737,7 @@
     }
   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;

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-23 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-23 21:01 cvs srfi-1 member call arg order Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).