SCHARS and STRING_BYTES are nonnegative
commitcef90102cb0366f26a9cf618497793d223d60a66
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Jun 2017 06:52:10 +0000 (4 23:52 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Jun 2017 06:53:47 +0000 (4 23:53 -0700)
treed710befc0730116053bbba8ba5ee32f104300a48
parent24f011d56aec273847181f9befbad491deb2f67e
SCHARS and STRING_BYTES are nonnegative

Tell the compiler that SCHARS and STRING_BYTES are nonnegative, in
the hopes that this will optimize a bit better.  Also, check this
at runtime if ENABLE_CHECKING.
* src/lisp.h (SCHARS, STRING_BYTES):
eassume that these functions return nonnegative values.
(STRING_SET_CHARS) [ENABLE_CHECKING]:
eassert that newsize is nonnegative.
src/lisp.h