summaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-12 16:47:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-12 16:47:17 +0000
commit37fb2dc84d385f13c0369e4c7614ccdfcb677b8e (patch)
treefdbd487de38931519385f8ceabbe32d8db297b24 /array.c
parent77680175dde0f26b77b7d5622be542f721cddcef (diff)
downloadruby-37fb2dc84d385f13c0369e4c7614ccdfcb677b8e.tar.gz
ruby-37fb2dc84d385f13c0369e4c7614ccdfcb677b8e.tar.xz
ruby-37fb2dc84d385f13c0369e4c7614ccdfcb677b8e.zip
* array.c (rb_ary_diff): fix a GC problem on IA64 with
gcc 3.3.5 (Debian 1:3.3.5-13). When rb_ary_push is called, there was no register which contains `hash' but `&RHASH(hash)->tbl' instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/array.c b/array.c
index b808c6449..16eac81a3 100644
--- a/array.c
+++ b/array.c
@@ -2638,7 +2638,8 @@ static VALUE
rb_ary_diff(ary1, ary2)
VALUE ary1, ary2;
{
- VALUE ary3, hash;
+ VALUE ary3;
+ volatile VALUE hash;
long i;
hash = ary_make_hash(to_ary(ary2), 0);