Fix off-by-one bug in _m4_shiftn.
commitd0098d52bcde4a46ed187145e21dccd362f638fc
authorEric Blake <ebb9@byu.net>
Thu, 28 Aug 2008 02:30:25 +0000 (27 20:30 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 28 Aug 2008 02:30:25 +0000 (27 20:30 -0600)
tree7aa7a0e73284ca378aabe95f8f3dbc8f1b6bf08a
parent02fa53b19528cbb849b08b68074dcbc31c5a9715
Fix off-by-one bug in _m4_shiftn.

* lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
all arguments.
* tests/m4sugar.at (M4 loops): Test it.
Reported by Akim Demaille.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/m4sugar/foreach.m4
tests/m4sugar.at