1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/ruby.h (RHASH_SIZE): Add a cast to suppress a

warning, comparison between signed and unsigned integer
  expressions [-Wsign-compare], on ILP32.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-05-27 13:11:06 +00:00
parent f0b6cb6fc7
commit 783cffce1d
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Mon May 27 22:09:33 2013 Tanaka Akira <akr@fsij.org>
* include/ruby/ruby.h (RHASH_SIZE): Add a cast to suppress a
warning, comparison between signed and unsigned integer
expressions [-Wsign-compare], on ILP32.
Mon May 27 19:25:47 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: rename RUBY_INTERNAL_EVENT_FREE to

View file

@ -971,7 +971,7 @@ struct RHash {
#define RHASH_TBL(h) rb_hash_tbl(h)
#define RHASH_ITER_LEV(h) (RHASH(h)->iter_lev)
#define RHASH_IFNONE(h) (RHASH(h)->ifnone)
#define RHASH_SIZE(h) (RHASH(h)->ntbl ? RHASH(h)->ntbl->num_entries : 0)
#define RHASH_SIZE(h) (RHASH(h)->ntbl ? (st_index_t)RHASH(h)->ntbl->num_entries : 0)
#define RHASH_EMPTY_P(h) (RHASH_SIZE(h) == 0)
#define RHASH_SET_IFNONE(h, ifnone) rb_hash_set_ifnone((VALUE)h, ifnone)