ruby-changes:24693
From: ryan <ko1@a...>
Date: Tue, 21 Aug 2012 08:59:47 +0900 (JST)
Subject: [ruby-changes:24693] ryan:r36744 (trunk): Fixed warning for implicit conversion from size_t to int
ryan 2012-08-21 08:59:35 +0900 (Tue, 21 Aug 2012) New Revision: 36744 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36744 Log: Fixed warning for implicit conversion from size_t to int Modified files: trunk/ext/date/date_strftime.c Index: ext/date/date_strftime.c =================================================================== --- ext/date/date_strftime.c (revision 36743) +++ ext/date/date_strftime.c (revision 36744) @@ -53,7 +53,8 @@ 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}; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/