ruby-changes:19105
From: naruse <ko1@a...>
Date: Tue, 22 Mar 2011 09:25:48 +0900 (JST)
Subject: [ruby-changes:19105] Ruby:r31144 (trunk): * ext/date/date_strftime.c (date_strftime_wo_timespec):
naruse 2011-03-22 06:49:00 +0900 (Tue, 22 Mar 2011) New Revision: 31144 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31144 Log: * ext/date/date_strftime.c (date_strftime_wo_timespec): surpress warning: shorten-64-to-32. Modified files: trunk/ChangeLog trunk/ext/date/date_strftime.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31143) +++ ChangeLog (revision 31144) @@ -1,3 +1,8 @@ +Tue Mar 22 06:47:46 2011 NARUSE, Yui <naruse@r...> + + * ext/date/date_strftime.c (date_strftime_wo_timespec): + surpress warning: shorten-64-to-32. + Tue Mar 22 06:42:42 2011 NARUSE, Yui <naruse@r...> * ext/date/date_core.c: surpress warning: shorten-64-to-32. Index: ext/date/date_strftime.c =================================================================== --- ext/date/date_strftime.c (revision 31143) +++ ext/date/date_strftime.c (revision 31144) @@ -491,9 +491,9 @@ 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/