From 3be03e9294e208bb0f158a1dd91c31e93dcd96fd Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 3 Nov 2004 11:34:57 +0000 Subject: * array.c (rb_ary_uniq_bang): do not push frozen string from hash table. [ruby-dev:24695] * array.c (rb_ary_and): ditto. * array.c (rb_ary_or): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 43c8f7908a..6592421f43 100644 --- a/string.c +++ b/string.c @@ -4453,7 +4453,7 @@ rb_str_sum(argc, argv, str) return sum; } else { - unsigned int sum = 0; + unsigned long sum = 0; while (p < pend) { str_mod_check(str, ptr, len); @@ -4461,7 +4461,7 @@ rb_str_sum(argc, argv, str) p++; } if (bits != 0) { - sum &= (1<