mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
673dc51c25
commit
7199685dc6
1 changed files with 3 additions and 3 deletions
6
enum.c
6
enum.c
|
@ -940,13 +940,13 @@ tally_up(VALUE hash, VALUE group)
|
|||
{
|
||||
VALUE tally = rb_hash_aref(hash, group);
|
||||
if (NIL_P(tally)) {
|
||||
tally = INT2FIX(1);
|
||||
tally = INT2FIX(1);
|
||||
}
|
||||
else if (FIXNUM_P(tally) && tally < INT2FIX(FIXNUM_MAX)) {
|
||||
tally += INT2FIX(1) & ~FIXNUM_FLAG;
|
||||
tally += INT2FIX(1) & ~FIXNUM_FLAG;
|
||||
}
|
||||
else {
|
||||
tally = rb_big_plus(tally, INT2FIX(1));
|
||||
tally = rb_big_plus(tally, INT2FIX(1));
|
||||
}
|
||||
rb_hash_aset(hash, group, tally);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue