1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* error.c (compile_warn_print, warn_print): fixed false warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-07-09 22:18:55 +00:00
parent 1dc339e5a4
commit 081625d16e
2 changed files with 3 additions and 2 deletions

View file

@ -16,6 +16,7 @@ Thu Jul 9 21:56:59 2009 NARUSE, Yui <naruse@ruby-lang.org>
* marshal.c (r_object0): replace \u by u when the regexp is
made by Ruby 1.8. [ruby-dev:36750]
Wed Jul 8 23:13:54 2009 Tadayoshi Funaba <tadf@dotrb.org>
* complex.c (nucomp_div): omitted zero division check.

View file

@ -99,7 +99,7 @@ compile_warn_print(const char *file, int line, const char *fmt, va_list args)
int len;
compile_snprintf(buf, BUFSIZ, file, line, fmt, args);
len = strlen(buf);
len = (int)strlen(buf);
buf[len++] = '\n';
rb_write_error2(buf, len);
}
@ -142,7 +142,7 @@ warn_print(const char *fmt, va_list args)
int len;
err_snprintf(buf, BUFSIZ, fmt, args);
len = strlen(buf);
len = (int)strlen(buf);
buf[len++] = '\n';
rb_write_error2(buf, len);
}