* expand tabs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
svn 2019-02-07 08:14:12 +00:00
parent 673dc51c25
commit 7199685dc6

6
enum.c
View File

@ -940,13 +940,13 @@ tally_up(VALUE hash, VALUE group)
{ {
VALUE tally = rb_hash_aref(hash, group); VALUE tally = rb_hash_aref(hash, group);
if (NIL_P(tally)) { if (NIL_P(tally)) {
tally = INT2FIX(1); tally = INT2FIX(1);
} }
else if (FIXNUM_P(tally) && tally < INT2FIX(FIXNUM_MAX)) { else if (FIXNUM_P(tally) && tally < INT2FIX(FIXNUM_MAX)) {
tally += INT2FIX(1) & ~FIXNUM_FLAG; tally += INT2FIX(1) & ~FIXNUM_FLAG;
} }
else { else {
tally = rb_big_plus(tally, INT2FIX(1)); tally = rb_big_plus(tally, INT2FIX(1));
} }
rb_hash_aset(hash, group, tally); rb_hash_aset(hash, group, tally);
} }