diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -370,8 +370,7 @@ rb_str_capacity(VALUE str) static inline VALUE str_alloc(VALUE klass) { - NEWOBJ(str, struct RString); - OBJSETUP(str, klass, T_STRING); + NEWOBJ_OF(str, struct RString, klass, T_STRING); str->as.heap.ptr = 0; str->as.heap.len = 0; |