# HG changeset patch # User Stefan Monnier # Date 1202487525 0 # Node ID b3e6289494fb9b23b7407586818e5abe164a99bc # Parent 2229d64348208ee32543fdba4b1f9849d520c09b (concat): Move side effect outside of macro call. (hash_clear): Use ASET. diff -r 2229d6434820 -r b3e6289494fb src/ChangeLog --- a/src/ChangeLog Fri Feb 08 16:00:55 2008 +0000 +++ b/src/ChangeLog Fri Feb 08 16:18:45 2008 +0000 @@ -1,3 +1,8 @@ +2008-02-08 Stefan Monnier + + * fns.c (concat): Move side effect outside of macro call. + (hash_clear): Use ASET. + 2008-02-08 Richard Stallman * frame.c (Fdelete_frame): If FORCE, don't call hooks. diff -r 2229d6434820 -r b3e6289494fb src/fns.c --- a/src/fns.c Fri Feb 08 16:00:55 2008 +0000 +++ b/src/fns.c Fri Feb 08 16:18:45 2008 +0000 @@ -727,7 +727,10 @@ thisindex++; } else - elt = AREF (this, thisindex++); + { + elt = AREF (this, thisindex); + thisindex++; + } /* Store this element into the result. */ if (toindex < 0) @@ -737,7 +740,10 @@ tail = XCDR (tail); } else if (VECTORP (val)) - AREF (val, toindex++) = elt; + { + ASET (val, toindex, elt); + toindex++; + } else { CHECK_NUMBER (elt); @@ -4239,7 +4245,7 @@ } for (i = 0; i < ASIZE (h->index); ++i) - AREF (h->index, i) = Qnil; + ASET (h->index, i, Qnil); h->next_free = make_number (0); h->count = 0;