Replace tabs with spaces

This commit is contained in:
kano4
2013-03-05 23:06:44 +09:00
parent 83c5274a71
commit fbbe6309fc
4 changed files with 40 additions and 40 deletions
+3 -3
View File
@@ -62,7 +62,7 @@ str_modify(mrb_state *mrb, struct RString *s)
len = s->len;
ptr = (char *)mrb_malloc(mrb, len+1);
if (p) {
memcpy(ptr, p, len);
memcpy(ptr, p, len);
}
ptr[len] = 0;
s->ptr = ptr;
@@ -931,8 +931,8 @@ mrb_str_chomp_bang(mrb_state *mrb, mrb_value str)
if (s->ptr[len-1] == '\n') {
s->len--;
if (s->len > 0 &&
s->ptr[s->len-1] == '\r') {
s->len--;
s->ptr[s->len-1] == '\r') {
s->len--;
}
}
else if (s->ptr[len-1] == '\r') {