summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-07 08:30:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-07 08:30:20 +0000
commit8f4e6f14d806019471f8a6f8a3951701f5511c77 (patch)
treefad1d657c896185d2118e7bd050f1b1a66a93166 /string.c
parent907b6d32be60daaf40ba3ddb781c7581d6a62130 (diff)
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
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 2ccb0a8ab4..5b556679c7 100644
--- a/string.c
+++ b/string.c
@@ -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;