mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d3edfdc7d9
commit
708142cabd
3 changed files with 7 additions and 7 deletions
6
struct.c
6
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue