Fix off-by-1 bug in --enable-checking=stringbytes
commit05aa6d4a68c036602f253fb27c3ca8995533b4c7
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Nov 2017 23:16:50 +0000 (10 15:16 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Nov 2017 23:44:04 +0000 (10 15:44 -0800)
tree390bd3b2221624d4f8b74d4f238abee8d9aa509a
parent096f638ddc806db875fa5bf90bb3be17b6893821
Fix off-by-1 bug in --enable-checking=stringbytes

Evidently nobody builds Emacs with --enable-checking=all,
which is no surprise as it is so slow as to be unusable nowadays.
Perhaps we should remove the slowest checks, or move them into
another category, or speed them up, or something.
* src/alloc.c (SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Fix off-by-one
error in size calculation, which caused a failure when
--enable-checking=stringbytes was used.  I introduced this bug in
2016-09-08T01:08:45!eggert@cs.ucla.edu "Port flexible array
members to GCC + valgrind".
src/alloc.c