HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6589fd6
)
(mapcar1): Keep `i' in `i_before' before `i' is
author
Kenichi Handa
<handa@m17n.org>
Thu, 22 Jan 1998 01:26:45 +0000
(
01:26
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 22 Jan 1998 01:26:45 +0000
(
01:26
+0000)
incremented by FETCH_STRING_CHAR_ADVANCE.
src/fns.c
patch
|
blob
|
blame
|
history
diff --git
a/src/fns.c
b/src/fns.c
index
dabd05a
..
421879f
100644
(file)
--- a/
src/fns.c
+++ b/
src/fns.c
@@
-1995,9
+1995,11
@@
mapcar1 (leni, vals, fn, seq)
for (i = 0, i_byte = 0; i < leni;)
{
int c;
- FETCH_STRING_CHAR_ADVANCE (c, seq, i, i_byte)
+ int i_before = i;
+
+ FETCH_STRING_CHAR_ADVANCE (c, seq, i, i_byte);
XSETFASTINT (dummy, c);
- vals[i] = call1 (fn, dummy);
+ vals[i
_before
] = call1 (fn, dummy);
}
}
else /* Must be a list, since Flength did not get an error */