[ruby-cvs:63505] usa:r56340 (trunk): * internal.h (ST2FIX): new macro to convert st_index_t to Fixnum.

usa at ruby-lang.org usa at ruby-lang.org
Wed Oct 5 01:25:01 JST 2016


usa	2016-10-05 01:25:01 +0900 (Wed, 05 Oct 2016)

  New Revision: 56340

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56340

  Log:
    * internal.h (ST2FIX): new macro to convert st_index_t to Fixnum.
      a hash value of Object might be Bignum, but it causes many troubles
      expecially the Object is used as a key of a hash.  so I've gave up
      to do so.
    
    * array.c (rb_ary_hash): use above macro.
    
    * bignum.c (rb_big_hash): ditto.
    
    * hash.c (rb_obj_hash, rb_hash_hash): ditto.
    
    * numeric.c (rb_dbl_hash): ditto.
    
    * proc.c (proc_hash): ditto.
    
    * re.c (rb_reg_hash, match_hash): ditto.
    
    * string.c (rb_str_hash_m): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/array.c
    trunk/bignum.c
    trunk/hash.c
    trunk/internal.h
    trunk/numeric.c
    trunk/proc.c
    trunk/re.c
    trunk/string.c


More information about the ruby-cvs mailing list