summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index d0f8e7500b..7119f5e8b7 100644
--- a/marshal.c
+++ b/marshal.c
@@ -1307,7 +1307,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
{
volatile VALUE str = r_bytes(arg);
int options = r_byte(arg);
- v = r_entry(rb_reg_new(str, options), arg);
+ v = r_entry(rb_reg_new_str(str, options), arg);
v = r_leave(v, arg);
}
break;