ruby-changes:12277
From: nobu <ko1@a...>
Date: Mon, 6 Jul 2009 09:23:54 +0900 (JST)
Subject: [ruby-changes:12277] Ruby:r23969 (trunk): * proc.c (proc_hash): use long.
nobu 2009-07-06 09:23:36 +0900 (Mon, 06 Jul 2009) New Revision: 23969 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23969 Log: * proc.c (proc_hash): use long. Modified files: trunk/ChangeLog trunk/proc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 23968) +++ ChangeLog (revision 23969) @@ -1,3 +1,7 @@ +Mon Jul 6 09:23:28 2009 Nobuyoshi Nakada <nobu@r...> + + * proc.c (proc_hash): use long. + Mon Jul 6 09:06:49 2009 Yukihiro Matsumoto <matz@r...> * test/ruby/test_module.rb (TestModule#test_undef): adjust to Index: proc.c =================================================================== --- proc.c (revision 23968) +++ proc.c (revision 23969) @@ -751,13 +751,13 @@ static VALUE proc_hash(VALUE self) { - int hash; + long hash; rb_proc_t *proc; GetProcPtr(self, proc); hash = (long)proc->block.iseq; hash ^= (long)proc->envval; hash ^= (long)proc->block.lfp >> 16; - return INT2FIX(hash); + return LONG2FIX(hash); } /* -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/