summaryrefslogtreecommitdiff
path: root/internal/string.h
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-11-02 11:03:21 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-11-02 11:03:21 -0400
commit4a8cd9e8bca2be1c14310cc13366ec9177a1f74d (patch)
treee41ec1f6fbdc845b8f1d393d60a99f3cbd4a852c /internal/string.h
parent875b7b3361d6073cfbad6161c595b3640210cb03 (diff)
downloadruby-4a8cd9e8bca2be1c14310cc13366ec9177a1f74d.tar.gz
Use shared flags of the type
The ELTS_SHARED flag is generic, so we should prefer to use the flags specific of the type (STR_SHARED for strings and RARRAY_SHARED_FLAG for arrays).
Diffstat (limited to 'internal/string.h')
-rw-r--r--internal/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/string.h b/internal/string.h
index 43b716f9b2..12edbff2b1 100644
--- a/internal/string.h
+++ b/internal/string.h
@@ -106,7 +106,7 @@ STR_EMBED_P(VALUE str)
static inline bool
STR_SHARED_P(VALUE str)
{
- return FL_ALL_RAW(str, STR_NOEMBED | ELTS_SHARED);
+ return FL_ALL_RAW(str, STR_NOEMBED | STR_SHARED);
}
static inline bool