diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-07 08:30:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-07 08:30:20 +0000 |
commit | 8f4e6f14d806019471f8a6f8a3951701f5511c77 (patch) | |
tree | fad1d657c896185d2118e7bd050f1b1a66a93166 | |
parent | 907b6d32be60daaf40ba3ddb781c7581d6a62130 (diff) | |
download | ruby-8f4e6f14d806019471f8a6f8a3951701f5511c77.tar.gz |
string.c: use raw macro
* string.c (str_new_frozen): use raw macro for RString object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1025,7 +1025,7 @@ str_new_frozen(VALUE klass, VALUE orig) str = str_new(klass, RSTRING_PTR(orig), RSTRING_LEN(orig)); } else { - if (FL_TEST(orig, STR_SHARED)) { + if (FL_TEST_RAW(orig, STR_SHARED)) { VALUE shared = RSTRING(orig)->as.heap.aux.shared; long ofs = RSTRING(orig)->as.heap.ptr - RSTRING(shared)->as.heap.ptr; long rest = RSTRING(shared)->as.heap.len - ofs - RSTRING(orig)->as.heap.len; |