summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-11-23 20:02:55 +0900
committerKOBAYASHI Shuji <[email protected]>2019-11-23 20:40:23 +0900
commit375c1ebc411ac2dd088f6897a2913c504fbc0852 (patch)
tree2fd9b0f5169404997ee6b56b10dd638c6b9b9d89 /src/string.c
parent56f9106d94bce48daf60a8d18a0792f98c204bbe (diff)
downloadmruby-375c1ebc411ac2dd088f6897a2913c504fbc0852.tar.gz
mruby-375c1ebc411ac2dd088f6897a2913c504fbc0852.zip
Rename `BITSIZE` to `BIT` and `BIT` to `BIT_POS` for consistency
The bit width terminology is unified to `BIT` according to `MRB_INT_BIT` and `CHAR_BIT`. Also the bit position terminology is unified to `BIT_POS`.
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 3399e46a9..dcf338eab 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2870,7 +2870,7 @@ mrb_init_string(mrb_state *mrb)
{
struct RClass *s;
- mrb_static_assert(RSTRING_EMBED_LEN_MAX < (1 << MRB_STR_EMBED_LEN_BITSIZE),
+ mrb_static_assert(RSTRING_EMBED_LEN_MAX < (1 << MRB_STR_EMBED_LEN_BIT),
"pointer size too big for embedded string");
mrb->string_class = s = mrb_define_class(mrb, "String", mrb->object_class); /* 15.2.10 */