summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index c5364ca0b2..10d63bcd1f 100644
--- a/compile.c
+++ b/compile.c
@@ -5211,7 +5211,7 @@ get_exception_sym2type(VALUE sym)
if (sym == symNext) return CATCH_TYPE_NEXT;
sym_inspect = rb_inspect(sym);
rb_raise(rb_eSyntaxError, "invalid exception symbol: %s",
- RSTRING_PTR(RB_GC_GUARD(sym_inspect)));
+ StringValuePtr(sym_inspect));
return 0;
}