* expand tabs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
svn 2018-10-29 18:00:14 +00:00
parent d3edfdc7d9
commit 708142cabd
3 changed files with 7 additions and 7 deletions

View File

@ -1782,7 +1782,7 @@ rb_keyword_error_new(const char *error, VALUE keys)
if (len > 0) { if (len > 0) {
rb_str_cat_cstr(error_message, ": "); rb_str_cat_cstr(error_message, ": ");
while (1) { while (1) {
const VALUE k = RARRAY_AREF(keys, i); const VALUE k = RARRAY_AREF(keys, i);
Check_Type(k, T_SYMBOL); /* wrong hash is given to rb_get_kwargs */ Check_Type(k, T_SYMBOL); /* wrong hash is given to rb_get_kwargs */
rb_str_append(error_message, rb_sym2str(k)); rb_str_append(error_message, rb_sym2str(k));
if (++i >= len) break; if (++i >= len) break;

6
gc.c
View File

@ -2800,10 +2800,10 @@ define_final0(VALUE obj, VALUE block)
long len = RARRAY_LEN(table); long len = RARRAY_LEN(table);
long i; long i;
for (i = 0; i < len; i++) { for (i = 0; i < len; i++) {
VALUE recv = RARRAY_AREF(table, i); VALUE recv = RARRAY_AREF(table, i);
if (rb_funcall(recv, idEq, 1, block)) { if (rb_funcall(recv, idEq, 1, block)) {
return recv; return recv;
} }
} }
} }

View File

@ -156,7 +156,7 @@ struct_member_pos(VALUE s, VALUE name)
mask, RSTRUCT_LEN(s)); mask, RSTRUCT_LEN(s));
} }
for (j = 0; j < mask; j++) { for (j = 0; j < mask; j++) {
if (RARRAY_AREF(back, j) == name) if (RARRAY_AREF(back, j) == name)
return (int)j; return (int)j;
} }
return -1; return -1;
@ -172,8 +172,8 @@ struct_member_pos(VALUE s, VALUE name)
for (;;) { for (;;) {
VALUE e = RARRAY_AREF(back, j); VALUE e = RARRAY_AREF(back, j);
if (e == name) if (e == name)
return FIX2INT(RARRAY_AREF(back, j + 1)); return FIX2INT(RARRAY_AREF(back, j + 1));
if (!RTEST(e)) { if (!RTEST(e)) {
return -1; return -1;
} }