зеркало из https://github.com/github/ruby.git
* 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:
Родитель
40bf1a5de1
Коммит
f9819d0374
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче