summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 12985ee481..f291931466 100644
--- a/object.c
+++ b/object.c
@@ -1644,7 +1644,7 @@ str_to_id(str)
rb_raise(rb_eArgError, "empty symbol string");
}
if (RSTRING(str)->len != strlen(RSTRING(str)->ptr)) {
- warn("Symbols should not contain NUL (\\0)");
+ rb_warn("Symbols should not contain NUL (\\0)");
}
return rb_intern(RSTRING(str)->ptr);
}