diff options
author | Paul Eggert <eggert@Penguin.CS.UCLA.EDU> | 2017-04-17 07:56:08 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-04-17 07:56:29 -0700 |
commit | 630df0587e1069b2cd2f2536d5fb61175adac3a2 (patch) | |
tree | f8ba2266c78f2d9d6cf0c4c36ec7297cfab370ce | |
parent | edc63bf94f3cd3f52fab86fe7b92a3ec6a19de40 (diff) | |
download | emacs-630df0587e1069b2cd2f2536d5fb61175adac3a2.tar.gz |
* src/lisp.h (STRING_SET_CHARS): Simplify assertion.
-rw-r--r-- | src/lisp.h | 5 |
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) { /* 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; } |