From 630df0587e1069b2cd2f2536d5fb61175adac3a2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 17 Apr 2017 07:56:08 -0700 Subject: [PATCH] * src/lisp.h (STRING_SET_CHARS): Simplify assertion. --- src/lisp.h | 5 +++-- 1 file 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) { /* This function cannot change the size of data allocated for the string when it was created. */ - eassert ((STRING_MULTIBYTE (string) && newsize <= SBYTES (string)) - || (!STRING_MULTIBYTE (string) && newsize == SCHARS (string))); + eassert (STRING_MULTIBYTE (string) + ? newsize <= SBYTES (string) + : newsize == SCHARS (string)); XSTRING (string)->size = newsize; } -- 2.39.5