* 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:
naruse 2011-03-21 21:49:00 +00:00
Родитель 40bf1a5de1
Коммит f9819d0374
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -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;