string.h: remove unused flag unset macros

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-01-08 14:39:11 +09:00
parent 0098654e1f
commit c18cd60c4b
2 changed files with 1 additions and 11 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ str_unshare_buffer(mrb_state *mrb, struct RString *s)
if (shared->refcnt == 1 && s->as.heap.ptr == shared->ptr) {
s->as.heap.aux.capa = shared->capa;
s->as.heap.ptr[s->as.heap.len] = '\0';
RSTR_UNSET_SHARED_FLAG(s);
RSTR_SET_TYPE(s, NORMAL);
mrb_free(mrb, shared);
}
else {