Skip to content

Commit

Permalink
* error.c (compile_warn_print, warn_print): fixed false warnings.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jul 9, 2009
1 parent 1dc339e commit 081625d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Thu Jul 9 21:56:59 2009 NARUSE, Yui <[email protected]>

* 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 <[email protected]>

* complex.c (nucomp_div): omitted zero division check.
Expand Down
4 changes: 2 additions & 2 deletions error.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 081625d

Please sign in to comment.