summaryrefslogtreecommitdiff
path: root/ext/date/date_strftime.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-21 21:49:00 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-21 21:49:00 +0000
commitf9819d0374ed3681542b4a33c4ea48f60eddc388 (patch)
treee8c1cd725d7a706df995d6145cf17d01ee7a1a55 /ext/date/date_strftime.c
parent40bf1a5de175b09b9492a039679b5a54437fedfd (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/date/date_strftime.c')
-rw-r--r--ext/date/date_strftime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/date_strftime.c b/ext/date/date_strftime.c
index 3ac20c8..f30f610 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;