mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/digest/digest.c (rb_digest_instance_inspect): constified.
* variable.c (rb_path2class): field precision should have type int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5b7dfb7c13
commit
bf903214d5
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Jul 1 19:31:24 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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 <naruse@ruby-lang.org>
|
Tue Jul 1 19:01:00 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* enc/shift_jis.c (code_is_ctype): HALF WIDTH KATAKANA is
|
* enc/shift_jis.c (code_is_ctype): HALF WIDTH KATAKANA is
|
||||||
|
|
|
@ -266,7 +266,7 @@ rb_digest_instance_inspect(VALUE self)
|
||||||
{
|
{
|
||||||
VALUE str;
|
VALUE str;
|
||||||
size_t digest_len = 32; /* about this size at least */
|
size_t digest_len = 32; /* about this size at least */
|
||||||
char *cname;
|
const char *cname;
|
||||||
|
|
||||||
cname = rb_obj_classname(self);
|
cname = rb_obj_classname(self);
|
||||||
|
|
||||||
|
|
|
@ -245,7 +245,7 @@ rb_path2class(const char *path)
|
||||||
}
|
}
|
||||||
if (!rb_const_defined(c, id)) {
|
if (!rb_const_defined(c, id)) {
|
||||||
undefined_class:
|
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);
|
c = rb_const_get_at(c, id);
|
||||||
switch (TYPE(c)) {
|
switch (TYPE(c)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue