* 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:
parent
ed86848563
commit
4256968488
@ -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
4
proc.c
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user