summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 139a2a24ab..3666aed53e 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1143,7 +1143,7 @@ vm_check_if_namespace(VALUE klass)
default:
str = rb_inspect(klass);
rb_raise(rb_eTypeError, "%s is not a class/module",
- RSTRING_PTR(RB_GC_GUARD(str)));
+ StringValuePtr(str));
}
}