mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
40bf1a5de1
commit
f9819d0374
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Mar 22 06:47:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* ext/date/date_core.c: surpress warning: shorten-64-to-32.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue