diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-08 01:08:27 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-08 01:08:27 +0000 |
commit | 98c8e1cd91819042b13eb5aa69d86cb813a9bcaa (patch) | |
tree | 53d7bede40bac195dcce01f3750d58cc1123fb10 /strftime.c | |
parent | 288b9de79de7b0cf04f184cd5d19bc3821059c27 (diff) | |
download | ruby-98c8e1cd91819042b13eb5aa69d86cb813a9bcaa.tar.gz |
* strftime.c (rb_strftime_with_timespec): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'strftime.c')
-rw-r--r-- | strftime.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |