* 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
This commit is contained in:
parent
288b9de79d
commit
98c8e1cd91
@ -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>
|
Sun Aug 8 08:58:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* common.mk (RUBY_H_INCLUDES): add subst.h.
|
* common.mk (RUBY_H_INCLUDES): add subst.h.
|
||||||
|
@ -482,13 +482,13 @@ rb_strftime_with_timespec(char *s, size_t maxsize, const char *format, const str
|
|||||||
off = off % 3600;
|
off = off % 3600;
|
||||||
if (1 <= colons)
|
if (1 <= colons)
|
||||||
*s++ = ':';
|
*s++ = ':';
|
||||||
i = snprintf(s, endp - s, "%02d", off / 60);
|
i = snprintf(s, endp - s, "%02d", (int)(off / 60));
|
||||||
if (i < 0) goto err;
|
if (i < 0) goto err;
|
||||||
s += i;
|
s += i;
|
||||||
off = off % 60;
|
off = off % 60;
|
||||||
if (2 <= colons) {
|
if (2 <= colons) {
|
||||||
*s++ = ':';
|
*s++ = ':';
|
||||||
i = snprintf(s, endp - s, "%02d", off);
|
i = snprintf(s, endp - s, "%02d", (int)off);
|
||||||
if (i < 0) goto err;
|
if (i < 0) goto err;
|
||||||
s += i;
|
s += i;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user