From 2b785b0f3e4f902e7de29a895d1f6ae0f10c3265 Mon Sep 17 00:00:00 2001 From: knu Date: Fri, 6 Jun 2008 10:39:57 +0000 Subject: Merge changes from ruby_1_8 to reduce warnings and potentially improve security. * mkconfig.rb: hide build path from rbconfig.rb. * util.c (ruby_strtod, dtoa): initialize more variables for error handling. * io.c (rscheck), marshal.c (w_nbyte, w_bytes, w_unique), (path2class, path2module): constified. * pack.c (pack_unpack), process.c (rb_syswait): suppress warnings. * suppress warnings on cygwin, mingw and mswin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sprintf.c') diff --git a/sprintf.c b/sprintf.c index cf8ea20de6..d8aa5fd0a4 100644 --- a/sprintf.c +++ b/sprintf.c @@ -718,7 +718,7 @@ rb_f_sprintf(argc, argv) fval = RFLOAT(rb_Float(val))->value; #if defined(_WIN32) && !defined(__BORLANDC__) if (isnan(fval) || isinf(fval)) { - char *expr; + const char *expr; if (isnan(fval)) { expr = "NaN"; -- cgit v1.2.3