From e401942dd609a32a7ef09a541e12d206e6db8f18 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 1 Jul 2008 10:36:22 +0000 Subject: * ext/digest/digest.c (rb_digest_instance_inspect): constified. * variable.c (rb_path2class): field precision should have type int. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ ext/digest/digest.c | 2 +- variable.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b31236d23..68d2f4b09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jul 1 19:31:24 2008 URABE Shyouhei + + * ext/digest/digest.c (rb_digest_instance_inspect): constified. + + * variable.c (rb_path2class): field precision should have type int. + Tue Jul 1 19:01:00 2008 NARUSE, Yui * enc/shift_jis.c (code_is_ctype): HALF WIDTH KATAKANA is diff --git a/ext/digest/digest.c b/ext/digest/digest.c index 65ec89a84..c3e9546ab 100644 --- a/ext/digest/digest.c +++ b/ext/digest/digest.c @@ -266,7 +266,7 @@ rb_digest_instance_inspect(VALUE self) { VALUE str; size_t digest_len = 32; /* about this size at least */ - char *cname; + const char *cname; cname = rb_obj_classname(self); diff --git a/variable.c b/variable.c index b5049afae..476220aa4 100644 --- a/variable.c +++ b/variable.c @@ -245,7 +245,7 @@ rb_path2class(const char *path) } if (!rb_const_defined(c, id)) { undefined_class: - rb_raise(rb_eArgError, "undefined class/module %.*s", p-path, path); + rb_raise(rb_eArgError, "undefined class/module %.*s", (int)(p-path), path); } c = rb_const_get_at(c, id); switch (TYPE(c)) { -- cgit