diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-21 21:49:00 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-21 21:49:00 +0000 |
commit | f9819d0374ed3681542b4a33c4ea48f60eddc388 (patch) | |
tree | e8c1cd725d7a706df995d6145cf17d01ee7a1a55 /ext | |
parent | 40bf1a5de175b09b9492a039679b5a54437fedfd (diff) |
* 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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/date_strftime.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |