summaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 10:36:22 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 10:36:22 +0000
commite401942dd609a32a7ef09a541e12d206e6db8f18 (patch)
tree5c657837a8251a81ffe019b1bfac2e6bf8bcc986 /variable.c
parenta2e5eb8e8f9c45892f89090e86c98ccd07e39251 (diff)
downloadruby-e401942dd609a32a7ef09a541e12d206e6db8f18.tar.gz
ruby-e401942dd609a32a7ef09a541e12d206e6db8f18.tar.xz
ruby-e401942dd609a32a7ef09a541e12d206e6db8f18.zip
* 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
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
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)) {