aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2002-07-15 02:16:15 +0000
committerKen Raeburn2002-07-15 02:16:15 +0000
commit1e4c5782780719a5bfa23d79d052bb3311ab1438 (patch)
tree461833a9742d72dcb776d00564b97463c63a0676 /src
parent437fcd47c684ce81446ded2bfb69707d78cea613 (diff)
downloademacs-1e4c5782780719a5bfa23d79d052bb3311ab1438.tar.gz
emacs-1e4c5782780719a5bfa23d79d052bb3311ab1438.zip
* fns.c (concat): Use STRING_SET_CHARS.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fns.c b/src/fns.c
index 217e97ffd56..9874b4dfa48 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -714,7 +714,7 @@ concat (nargs, args, target_type, last_special)
714 } 714 }
715 toindex_byte += thislen_byte; 715 toindex_byte += thislen_byte;
716 toindex += thisleni - combined; 716 toindex += thisleni - combined;
717 SCHARS (val) -= combined; 717 STRING_SET_CHARS (val, SCHARS (val) - combined);
718 } 718 }
719 /* Copy a single-byte string to a multibyte string. */ 719 /* Copy a single-byte string to a multibyte string. */
720 else if (STRINGP (this) && STRINGP (val)) 720 else if (STRINGP (this) && STRINGP (val))
@@ -804,7 +804,7 @@ concat (nargs, args, target_type, last_special)
804 && toindex_byte > 0 804 && toindex_byte > 0
805 && count_combining (SDATA (val), 805 && count_combining (SDATA (val),
806 toindex_byte, toindex_byte - 1)) 806 toindex_byte, toindex_byte - 1))
807 SCHARS (val)--; 807 STRING_SET_CHARS (val, SCHARS (val) - 1);
808 else 808 else
809 toindex++; 809 toindex++;
810 } 810 }