summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorsvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-29 18:00:14 +0000
committersvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-29 18:00:14 +0000
commit708142cabd888e8f86303358977adda35e3536bd (patch)
tree0549851c966417be86f3deff8e47bf5ecec3ea28 /struct.c
parentd3edfdc7d9cadd6c8e7f7b7c93729da5c5cf4542 (diff)
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c6
1 files changed, 3 insertions, 3 deletions
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;
}