From d5507529fbcad12a37714a0a3f39d2f9f2e4b7ce Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 11 Jan 2002 09:18:54 +0000 Subject: * re.c (match_select): should propagate taintness. * hash.c (rb_hash_set_default): Hash#default= should return the new value. * string.c (rb_str_to_i): accepts optional base argument. [new] * numeric.c (rb_fix2str): should not handle negative fixnum values int32 via calling sprintf() directly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index c65633be6..ce7eae97a 100644 --- a/parse.y +++ b/parse.y @@ -6,7 +6,7 @@ $Date$ created at: Fri May 28 18:02:42 JST 1993 - Copyright (C) 1993-2001 Yukihiro Matsumoto + Copyright (C) 1993-2002 Yukihiro Matsumoto **********************************************************************/ @@ -4280,7 +4280,7 @@ gettable(id) else if (id == k__FILE__) { VALUE f = rb_str_new2(ruby_sourcefile); OBJ_FREEZE(f); - return NEW_STR(f); + return NEW_LIT(f); } else if (id == k__LINE__) { return NEW_LIT(INT2FIX(ruby_sourceline)); -- cgit