mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(Fmodify_syntax_entry): Use macro STRING_BYTES to get
byte size of a string.
This commit is contained in:
parent
c9aa3ef816
commit
7c19e8e146
1 changed files with 2 additions and 2 deletions
|
|
@ -877,8 +877,8 @@ DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3,
|
|||
if (*p)
|
||||
{
|
||||
int len;
|
||||
int character = STRING_CHAR_AND_LENGTH (p, XSTRING (newentry)->size - 1,
|
||||
len);
|
||||
int character = (STRING_CHAR_AND_LENGTH
|
||||
(p, STRING_BYTES (XSTRING (newentry)) - 1, len));
|
||||
XSETINT (match, character);
|
||||
if (XFASTINT (match) == ' ')
|
||||
match = Qnil;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue