aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;