Use unsigned short for length of embedded strings

This commit is contained in:
Peter Zhu 2022-01-07 15:11:25 -05:00
parent d9ef711f29
commit bc643bbe2e
Notes: git 2022-01-08 05:48:36 +09:00

View File

@ -280,7 +280,7 @@ struct RString {
/** Embedded contents. */ /** Embedded contents. */
struct { struct {
#if USE_RVARGC #if USE_RVARGC
short len; unsigned short len;
/* This is a length 1 array because: /* This is a length 1 array because:
* 1. GCC has a bug that does not optimize C flexible array members * 1. GCC has a bug that does not optimize C flexible array members
* (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102452) * (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102452)