1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed warning for implicit conversion from size_t to int

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ryan 2012-08-20 23:59:35 +00:00
parent 3c3e659196
commit ed720d5505

View file

@ -53,7 +53,8 @@ date_strftime_with_tmx(char *s, size_t maxsize, const char *format,
auto char tbuf[100]; auto char tbuf[100];
ptrdiff_t i; ptrdiff_t i;
int v, w; int v, w;
int precision, flags, colons; size_t colons;
int precision, flags;
char padding; char padding;
/* LOCALE_[OE] and COLONS are actually modifiers, not flags */ /* LOCALE_[OE] and COLONS are actually modifiers, not flags */
enum {LEFT, CHCASE, LOWER, UPPER, LOCALE_O, LOCALE_E, COLONS}; enum {LEFT, CHCASE, LOWER, UPPER, LOCALE_O, LOCALE_E, COLONS};