summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--class.c2
-rw-r--r--gc.c6
-rw-r--r--struct.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/class.c b/class.c
index 284cfa26aa..d140e8adea 100644
--- a/class.c
+++ b/class.c
@@ -1782,7 +1782,7 @@ rb_keyword_error_new(const char *error, VALUE keys)
if (len > 0) {
rb_str_cat_cstr(error_message, ": ");
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 */
rb_str_append(error_message, rb_sym2str(k));
if (++i >= len) break;
diff --git a/gc.c b/gc.c
index fb2d4a40d6..de0cb61f38 100644
--- a/gc.c
+++ b/gc.c
@@ -2800,10 +2800,10 @@ define_final0(VALUE obj, VALUE block)
long len = RARRAY_LEN(table);
long i;
- for (i = 0; i < len; i++) {
+ for (i = 0; i < len; i++) {
VALUE recv = RARRAY_AREF(table, i);
- if (rb_funcall(recv, idEq, 1, block)) {
- return recv;
+ if (rb_funcall(recv, idEq, 1, block)) {
+ return recv;
}
}
}
diff --git a/struct.c b/struct.c
index 6d5f204c7a..bed3a68ad4 100644
--- a/struct.c
+++ b/struct.c
@@ -156,7 +156,7 @@ struct_member_pos(VALUE s, VALUE name)
mask, RSTRUCT_LEN(s));
}
for (j = 0; j < mask; j++) {
- if (RARRAY_AREF(back, j) == name)
+ if (RARRAY_AREF(back, j) == name)
return (int)j;
}
return -1;
@@ -172,8 +172,8 @@ struct_member_pos(VALUE s, VALUE name)
for (;;) {
VALUE e = RARRAY_AREF(back, j);
- if (e == name)
- return FIX2INT(RARRAY_AREF(back, j + 1));
+ if (e == name)
+ return FIX2INT(RARRAY_AREF(back, j + 1));
if (!RTEST(e)) {
return -1;
}