diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-06 00:23:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-06 00:23:36 +0000 |
commit | 425696848891d9b83749d76ccf11ee4abf0092b5 (patch) | |
tree | 54b80fba2f60d00555db2e135bdde6b00c91ab0e /proc.c | |
parent | ed86848563a9d739f090b6c56c7f7eb76c804331 (diff) | |
download | ruby-425696848891d9b83749d76ccf11ee4abf0092b5.tar.gz |
* proc.c (proc_hash): use long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } /* |