diff options
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c index 801e77f16..c5efd779f 100644 --- a/src/string.c +++ b/src/string.c @@ -2560,9 +2560,6 @@ mrb_str_cat(mrb_state *mrb, mrb_value str, const char *ptr, size_t len) } capa = RSTR_CAPA(s); - if (capa <= RSTRING_EMBED_LEN_MAX) - capa = RSTRING_EMBED_LEN_MAX+1; - total = RSTR_LEN(s)+len; if (total >= MRB_INT_MAX) { size_error: |
