Commit 5e953882 authored by Ken Raeburn's avatar Ken Raeburn
Browse files

* charset.h (FETCH_STRING_CHAR_ADVANCE,

FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
address of string contents.
parent f5b81cd8
......@@ -573,7 +573,7 @@ if (1) \
CHARIDX++; \
if (STRING_MULTIBYTE (STRING)) \
{ \
unsigned char *ptr = &SREF (STRING, BYTEIDX); \
unsigned char *ptr = SDATA (STRING) + BYTEIDX; \
int space_left = XSTRING (STRING)->size_byte - BYTEIDX; \
int actual_len; \
\
......@@ -590,7 +590,7 @@ else
#define FETCH_STRING_CHAR_ADVANCE_NO_CHECK(OUTPUT, STRING, CHARIDX, BYTEIDX) \
if (1) \
{ \
unsigned char *fetch_string_char_ptr = &SREF (STRING, BYTEIDX); \
unsigned char *fetch_string_char_ptr = SDATA (STRING) + BYTEIDX; \
int fetch_string_char_space_left = XSTRING (STRING)->size_byte - BYTEIDX; \
int actual_len; \
\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment