mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_new_frozen): remove debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b8c0ff86d5
commit
f254b689f2
2 changed files with 4 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue May 14 03:33:17 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* string.c (rb_str_new_frozen): remove debug print.
|
||||
|
||||
Tue May 14 03:22:51 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* include/ruby/ruby.h: enable to generate write barrier protected
|
||||
|
|
3
string.c
3
string.c
|
@ -721,9 +721,6 @@ rb_str_new_frozen(VALUE orig)
|
|||
klass = rb_obj_class(orig);
|
||||
if (STR_SHARED_P(orig) && (str = RSTRING(orig)->as.heap.aux.shared)) {
|
||||
long ofs;
|
||||
if (!OBJ_FROZEN(str)) {
|
||||
rb_bug("xyzzy");
|
||||
}
|
||||
assert(OBJ_FROZEN(str));
|
||||
ofs = RSTRING_LEN(str) - RSTRING_LEN(orig);
|
||||
if ((ofs > 0) || (klass != RBASIC(str)->klass) ||
|
||||
|
|
Loading…
Reference in a new issue