Commit 2aa6072
string.c: shrink too big buffer
* string.c (rb_str_resize): shrink the buffer even if new length
is same but it is enough smaller than the capacity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Conflicts:
string.c1 parent 9574ced commit 2aa6072
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2034 | 2034 | | |
2035 | 2035 | | |
2036 | 2036 | | |
2037 | | - | |
| 2037 | + | |
| 2038 | + | |
2038 | 2039 | | |
2039 | 2040 | | |
| 2041 | + | |
2040 | 2042 | | |
2041 | 2043 | | |
2042 | 2044 | | |
| |||
2056 | 2058 | | |
2057 | 2059 | | |
2058 | 2060 | | |
| 2061 | + | |
2059 | 2062 | | |
2060 | 2063 | | |
2061 | 2064 | | |
2062 | 2065 | | |
2063 | 2066 | | |
| 2067 | + | |
2064 | 2068 | | |
2065 | 2069 | | |
2066 | 2070 | | |
| |||
0 commit comments