1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (rb_str_resize): fix indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-07-21 14:54:51 +00:00
parent 54057bbe33
commit 4b40f2c516

View file

@ -719,7 +719,7 @@ rb_str_resize(VALUE str, long len)
MEMCPY(ptr, RSTRING_PTR(str), char, RSTRING_LEN(str));
RSTRING(str)->as.heap.ptr = ptr;
STR_SET_NOEMBED(str);
}
}
else if (RSTRING_LEN(str) < len || RSTRING_LEN(str) - len > 1024) {
REALLOC_N(RSTRING(str)->as.heap.ptr, char, len+1);
}