emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109230: Fix listn introduced in revi


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109230: Fix listn introduced in revision 109223.
Date: Fri, 27 Jul 2012 13:29:26 +0300
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109230
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2012-07-27 13:29:26 +0300
message:
  Fix listn introduced in revision 109223.
  
   src/alloc.c (listn): Fix the order the arguments are consed onto the list.
modified:
  src/ChangeLog
  src/alloc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-07-27 09:24:34 +0000
+++ b/src/ChangeLog     2012-07-27 10:29:26 +0000
@@ -1,5 +1,8 @@
 2012-07-27  Eli Zaretskii  <address@hidden>
 
+       * alloc.c (listn): Fix the order the arguments are consed onto the
+       list.
+
        * lisp.h (enum constype): Use CONSTYPE_HEAP and CONSTYPE_PURE for
        enumeration constants, as PURE and HEAP are too general, and clash
        with other headers and sources, such as gmalloc.c and the

=== modified file 'src/alloc.c'
--- a/src/alloc.c       2012-07-27 09:24:34 +0000
+++ b/src/alloc.c       2012-07-27 10:29:26 +0000
@@ -2832,7 +2832,7 @@
     objp[i] = va_arg (ap, Lisp_Object);
   va_end (ap);
 
-  for (i = 0, val = Qnil; i < count; i++)
+  for (val = Qnil, i = count - 1; i >= 0; i--)
     {
       if (type == CONSTYPE_PURE)
        val = pure_cons (objp[i], val);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]