summaryrefslogtreecommitdiff
path: root/ext/date/date_strftime.c
diff options
context:
space:
mode:
authorryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-20 23:59:35 +0000
committerryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-20 23:59:35 +0000
commited720d55054c1c7167cd3da97b683e868351f9b8 (patch)
treeb6957dda745b6508958393b00e4a6cf822eb0439 /ext/date/date_strftime.c
parent3c3e659196b7511f02b03e2904c40a29993a184c (diff)
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
Diffstat (limited to 'ext/date/date_strftime.c')
-rw-r--r--ext/date/date_strftime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/date/date_strftime.c b/ext/date/date_strftime.c
index 1307296..54324da 100644
--- a/ext/date/date_strftime.c
+++ b/ext/date/date_strftime.c
@@ -53,7 +53,8 @@ date_strftime_with_tmx(char *s, size_t maxsize, const char *format,
auto char tbuf[100];
ptrdiff_t i;
int v, w;
- int precision, flags, colons;
+ size_t colons;
+ int precision, flags;
char padding;
/* LOCALE_[OE] and COLONS are actually modifiers, not flags */
enum {LEFT, CHCASE, LOWER, UPPER, LOCALE_O, LOCALE_E, COLONS};