summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--object.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 498bd8c9b6..6b2485b0c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Mar 16 22:20:25 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * object.c (str_to_id): fixed typo.
+
Wed Mar 16 18:08:32 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call0): reorganize "return" event post.
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);
}