mask big()->c

Clearly we aren't exercising the capacity increase logic very hard yet.
This commit is contained in:
Jōshin 2024-06-06 08:37:09 -07:00
parent 9154a579c7
commit f279754e10
No known key found for this signature in database

View file

@ -151,7 +151,7 @@ class string
if (isbig() && big()->c <= __::sso_max)
__builtin_trap();
#endif
return isbig() ? big()->c : __::sso_max;
return isbig() ? __::big_mask & big()->c : __::sso_max;
}
iterator begin() noexcept