summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-21 14:54:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-21 14:54:51 +0000
commit4b40f2c51607e5a918699952605bbcfc5bff9f99 (patch)
tree3eded932ba4698c4df77609979762d50bd06311f
parent54057bbe33ef38bc62c092af9b4987565f5f2be0 (diff)
* string.c (rb_str_resize): fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 204e98bf88..eeb3f9499d 100644
--- a/string.c
+++ b/string.c
@@ -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);
}