mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 08:20:28 +00:00
less (?) horrible set_big_capacity
This commit is contained in:
parent
a535cdc417
commit
23d489c041
1 changed files with 2 additions and 1 deletions
|
@ -303,7 +303,8 @@ class string
|
|||
{
|
||||
if (c2 > __::big_mask)
|
||||
__builtin_trap();
|
||||
*((size_t *)__builtin_launder(blob) + 2) = ~__::big_mask | c2;
|
||||
*(__builtin_launder(blob) + __::sso_max) = 0x80;
|
||||
big()->c |= c2;
|
||||
}
|
||||
|
||||
inline __::small_string* small() noexcept
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue