aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorLourens Naudé <lourens@bearmetal.eu>2019-04-25 22:35:43 +0100
committer卜部昌平 <shyouhei@ruby-lang.org>2019-10-11 11:16:16 +0900
commit9c24ce551d19ac0f5cac4bc9ff5ef5a7a980909d (patch)
treee529bbc4434b404a4fcc740abaf47b74ccc010bb /string.c
parent0ca4f74967bb5a439b1f3d322ae7729265b917a4 (diff)
downloadruby-9c24ce551d19ac0f5cac4bc9ff5ef5a7a980909d.tar.gz
Reduce the minimum string buffer size from 127 to 63 bytes
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 77f360b8d2..7f0468ff19 100644
--- a/string.c
+++ b/string.c
@@ -1346,7 +1346,7 @@ str_new_empty(VALUE str)
return v;
}
-#define STR_BUF_MIN_SIZE 127
+#define STR_BUF_MIN_SIZE 63
STATIC_ASSERT(STR_BUF_MIN_SIZE, STR_BUF_MIN_SIZE > RSTRING_EMBED_LEN_MAX);
VALUE