diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-11 09:18:54 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-11 09:18:54 +0000 |
commit | 85e32dd2212bc6e5bb2b48c5b6c94e048e84afeb (patch) | |
tree | 09c1328183e4ac51711b93522b53b7f0c62d5b4d /parse.y | |
parent | 5915dc245e5efac34d676ad29ebd38d6b46f16cf (diff) |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |