summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index c80f356..45f768c 100644
--- a/string.c
+++ b/string.c
@@ -100,7 +100,7 @@ rb_str_new4(orig)
{
VALUE klass;
- klass = rb_obj_type(orig);
+ klass = rb_obj_class(orig);
if (RSTRING(orig)->orig) {
VALUE str;
@@ -257,7 +257,7 @@ rb_str_dup(str)
VALUE klass;
StringValue(str);
- klass = rb_obj_type(str);
+ klass = rb_obj_class(str);
if (OBJ_FROZEN(str)) str2 = rb_str_new3(str);
else if (FL_TEST(str, STR_NO_ORIG)) {