From f279754e10880a56770c0c9db6dc704bb087460b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Thu, 6 Jun 2024 08:37:09 -0700 Subject: [PATCH] mask big()->c Clearly we aren't exercising the capacity increase logic very hard yet. --- ctl/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctl/string.h b/ctl/string.h index 38f9d89cc..5b74bc27b 100644 --- a/ctl/string.h +++ b/ctl/string.h @@ -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