diff options
| author | Ken Raeburn | 2002-07-15 02:16:15 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-15 02:16:15 +0000 |
| commit | 1e4c5782780719a5bfa23d79d052bb3311ab1438 (patch) | |
| tree | 461833a9742d72dcb776d00564b97463c63a0676 /src | |
| parent | 437fcd47c684ce81446ded2bfb69707d78cea613 (diff) | |
| download | emacs-1e4c5782780719a5bfa23d79d052bb3311ab1438.tar.gz emacs-1e4c5782780719a5bfa23d79d052bb3311ab1438.zip | |
* fns.c (concat): Use STRING_SET_CHARS.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | } |