summaryrefslogtreecommitdiff
path: root/transcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c
index 58a4265e0e..badb8460f3 100644
--- a/transcode.c
+++ b/transcode.c
@@ -2892,7 +2892,7 @@ encoded_dup(VALUE newstr, VALUE str, int encidx)
return newstr;
}
else {
- RBASIC(newstr)->klass = rb_obj_class(str);
+ RBASIC_SET_CLASS(newstr, rb_obj_class(str));
}
return str_encode_associate(newstr, encidx);
}