diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:22:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:22:03 +0000 |
commit | 12cbb588193ac5148b6421fc8953c817acb0ae9f (patch) | |
tree | a8a501830a01ce87cb652e9feb39797921ef43bc /transcode.c | |
parent | c511d26f6ae87f16956fe40fe5a5cfb6b66811b2 (diff) | |
download | ruby-12cbb588193ac5148b6421fc8953c817acb0ae9f.tar.gz |
* test/ruby/test_sprintf.rb: fix ML ref. [ruby-core:32848]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
-rw-r--r-- | transcode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/transcode.c b/transcode.c index 17bad37e27..cd4829f291 100644 --- a/transcode.c +++ b/transcode.c @@ -2711,9 +2711,7 @@ str_encode_bang(int argc, VALUE *argv, VALUE str) VALUE newstr; int encidx; - if (OBJ_FROZEN(str)) { /* in future, may use str_frozen_check from string.c, but that's currently static */ - rb_raise(rb_eRuntimeError, "string frozen"); - } + rb_check_frozen(str); newstr = str; encidx = str_transcode(argc, argv, &newstr); |