aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lisp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lisp.h b/src/lisp.h
index e0bad58f758..daf57ed906f 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1371,8 +1371,9 @@ STRING_SET_CHARS (Lisp_Object string, ptrdiff_t newsize)
1371{ 1371{
1372 /* This function cannot change the size of data allocated for the 1372 /* This function cannot change the size of data allocated for the
1373 string when it was created. */ 1373 string when it was created. */
1374 eassert ((STRING_MULTIBYTE (string) && newsize <= SBYTES (string)) 1374 eassert (STRING_MULTIBYTE (string)
1375 || (!STRING_MULTIBYTE (string) && newsize == SCHARS (string))); 1375 ? newsize <= SBYTES (string)
1376 : newsize == SCHARS (string));
1376 XSTRING (string)->size = newsize; 1377 XSTRING (string)->size = newsize;
1377} 1378}
1378 1379