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

* proc.c (proc_hash): use long.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-07-06 00:23:36 +00:00
parent ed86848563
commit 4256968488
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Mon Jul 6 09:23:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* proc.c (proc_hash): use long.
Mon Jul 6 09:06:49 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* test/ruby/test_module.rb (TestModule#test_undef): adjust to

4
proc.c
View file

@ -751,13 +751,13 @@ proc_eq(VALUE self, VALUE other)
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);
}
/*