diff options
| author | Kenichi Handa | 1998-06-23 00:29:51 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-06-23 00:29:51 +0000 |
| commit | 7c19e8e146415398590e763422cfc663e3b643e1 (patch) | |
| tree | a4961b7872e900c6a527e6cdcf105184873a4182 /src | |
| parent | c9aa3ef816c47569595773c7acebe6fc5a8115cc (diff) | |
| download | emacs-7c19e8e146415398590e763422cfc663e3b643e1.tar.gz emacs-7c19e8e146415398590e763422cfc663e3b643e1.zip | |
(Fmodify_syntax_entry): Use macro STRING_BYTES to get
byte size of a string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/syntax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c index 4ab87a3a3c2..b17a8d4d0bc 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -877,8 +877,8 @@ DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3, | |||
| 877 | if (*p) | 877 | if (*p) |
| 878 | { | 878 | { |
| 879 | int len; | 879 | int len; |
| 880 | int character = STRING_CHAR_AND_LENGTH (p, XSTRING (newentry)->size - 1, | 880 | int character = (STRING_CHAR_AND_LENGTH |
| 881 | len); | 881 | (p, STRING_BYTES (XSTRING (newentry)) - 1, len)); |
| 882 | XSETINT (match, character); | 882 | XSETINT (match, character); |
| 883 | if (XFASTINT (match) == ' ') | 883 | if (XFASTINT (match) == ' ') |
| 884 | match = Qnil; | 884 | match = Qnil; |