mruby-string-ext (str_b): simplify the flag update

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-01-03 08:46:04 +09:00
parent 8c2c57c59b
commit 5a7c944a52
+1 -1
View File
@@ -1328,7 +1328,7 @@ str_ascii_only_p(mrb_state *mrb, mrb_value str)
static mrb_value
str_b(mrb_state *mrb, mrb_value str)
{
RSTR_SET_BINARY_FLAG(mrb_str_ptr(str));
mrb_str_ptr(str)->flags |= MRB_STR_BINARY;
return str;
}