From f01d580142aba329f10e713e5828bff45edcf8ac Mon Sep 17 00:00:00 2001 From: usa Date: Sat, 9 Jan 2010 05:03:26 +0000 Subject: [PATCH] * missing/vsnprintf.c (BSD_vfprintf): get rid of a warning of VC++ x64. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ missing/vsnprintf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index aef7f703b1..3bde0aee60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Jan 9 14:01:14 2010 NAKAMURA Usaku + + * missing/vsnprintf.c (BSD_vfprintf): get rid of a warning of VC++ x64. + Sat Jan 9 08:40:54 2010 Nobuyoshi Nakada * win32/configure.bat (WIN32DIR): regularise file separators. diff --git a/missing/vsnprintf.c b/missing/vsnprintf.c index 5718362fed..4e19651679 100644 --- a/missing/vsnprintf.c +++ b/missing/vsnprintf.c @@ -769,7 +769,7 @@ reswitch: switch (ch) { if (flags & QUADINT) { uqval = va_arg(ap, quad_t); if ((quad_t)uqval < 0) { - uqval = -uqval; + uqval = -(quad_t)uqval; sign = '-'; } } else