From f9819d0374ed3681542b4a33c4ea48f60eddc388 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 21 Mar 2011 21:49:00 +0000 Subject: * ext/date/date_strftime.c (date_strftime_wo_timespec): surpress warning: shorten-64-to-32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/date_strftime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/date/date_strftime.c b/ext/date/date_strftime.c index 3ac20c87f5..f30f6103ca 100644 --- a/ext/date/date_strftime.c +++ b/ext/date/date_strftime.c @@ -491,9 +491,9 @@ date_strftime_wo_timespec(char *s, size_t maxsize, const char *format, off = NUM2LONG(rb_funcall(vtm->utc_offset, rb_intern("round"), 0)); - aoff = off; + aoff = (int)off; if (aoff < 0) - aoff = -off; + aoff = (int)-off; if ((aoff / 3600) < 10) hl = 1; -- cgit v1.2.3