aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--strftime.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 08a73d5ff7..18c58993e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Aug 8 10:07:45 2010 Tanaka Akira <akr@fsij.org>
+
+ * strftime.c (rb_strftime_with_timespec): suppress warnings.
+
Sun Aug 8 08:58:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (RUBY_H_INCLUDES): add subst.h.
diff --git a/strftime.c b/strftime.c
index 3bdf7f6ecf..89f602179e 100644
--- a/strftime.c
+++ b/strftime.c
@@ -482,13 +482,13 @@ rb_strftime_with_timespec(char *s, size_t maxsize, const char *format, const str
off = off % 3600;
if (1 <= colons)
*s++ = ':';
- i = snprintf(s, endp - s, "%02d", off / 60);
+ i = snprintf(s, endp - s, "%02d", (int)(off / 60));
if (i < 0) goto err;
s += i;
off = off % 60;
if (2 <= colons) {
*s++ = ':';
- i = snprintf(s, endp - s, "%02d", off);
+ i = snprintf(s, endp - s, "%02d", (int)off);
if (i < 0) goto err;
s += i;
}