diff options
author | svn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-30 22:12:12 +0000 |
---|---|---|
committer | svn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-30 22:12:12 +0000 |
commit | d4f1187d31ee300c502713587a26ca186c8e04b9 (patch) | |
tree | 3091b9e385efe1c6ff8036924ba1837aeff7d0ef /array.c | |
parent | 8f675cdd00e2c5b5a0f143f5e508dbbafdb20ccd (diff) |
* remove trailing spaces, expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4421,9 +4421,9 @@ ary_recycle_hash(VALUE hash) { assert(RBASIC_CLASS(hash) == 0); if (RHASH_TABLE_P(hash)) { - st_table *tbl = RHASH_ST_TABLE(hash); + st_table *tbl = RHASH_ST_TABLE(hash); st_free_table(tbl); - RHASH_CLEAR(hash); + RHASH_CLEAR(hash); } } @@ -4467,7 +4467,7 @@ rb_ary_diff(VALUE ary1, VALUE ary2) hash = ary_make_hash(ary2); for (i=0; i<RARRAY_LEN(ary1); i++) { - if (rb_hash_stlike_lookup(hash, RARRAY_AREF(ary1, i), NULL)) continue; + if (rb_hash_stlike_lookup(hash, RARRAY_AREF(ary1, i), NULL)) continue; rb_ary_push(ary3, rb_ary_elt(ary1, i)); } ary_recycle_hash(hash); @@ -4573,7 +4573,7 @@ rb_ary_and(VALUE ary1, VALUE ary2) for (i=0; i<RARRAY_LEN(ary1); i++) { v = RARRAY_AREF(ary1, i); vv = (st_data_t)v; - if (rb_hash_stlike_delete(hash, &vv, 0)) { + if (rb_hash_stlike_delete(hash, &vv, 0)) { rb_ary_push(ary3, v); } } |