aboutsummaryrefslogtreecommitdiffstats
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
parent40bf1a5de175b09b9492a039679b5a54437fedfd (diff)
downloadruby-f9819d0374ed3681542b4a33c4ea48f60eddc388.tar.gz
* 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
-rw-r--r--ChangeLog5
-rw-r--r--ext/date/date_strftime.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 41a3ea3880..68bdfc76b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
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;