From b154c9488ec0e660ac4ebe7e14bede39f064d731 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 27 Oct 2004 02:46:54 +0000 Subject: * string.c (RESIZE_CAPA): check string attribute before modifying capacity member of string structure. [ruby-dev:24594] * ext/zlib/zlib.c (gzreader_gets): use memchr() to to gain performance. [ruby-talk:117701] * sprintf.c (rb_f_sprintf): raise ArgumentError for extra arguments, unless (digit)$ style used. * ext/zlib/zlib.c (gzreader_gets): use memchr() to to gain performance. [ruby-talk:117701] * sprintf.c (rb_f_sprintf): raise ArgumentError for extra arguments, unless (digit)$ style used. * eval.c (frame_free): Guy Decoux solved the leak problem. Thanks. [ruby-core:03549] * ext/zlib/zlib.c (zstream_append_input): clear klass for z->input to avoid potential vulnerability. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 0cada5915..bbb279b7d 100644 --- a/numeric.c +++ b/numeric.c @@ -1520,9 +1520,6 @@ rb_num2long(val) case T_BIGNUM: return rb_big2long(val); - case T_SYMBOL: - rb_warning("treating Symbol as an integer"); - /* fall through */ default: val = rb_to_int(val); return NUM2LONG(val); -- cgit