ruby-changes:27881
From: naruse <ko1@a...>
Date: Tue, 26 Mar 2013 10:42:41 +0900 (JST)
Subject: [ruby-changes:27881] naruse:r39933 (trunk): Suppress -Werror=shorten-64-to-32
naruse 2013-03-26 10:42:33 +0900 (Tue, 26 Mar 2013) New Revision: 39933 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39933 Log: Suppress -Werror=shorten-64-to-32 Modified files: trunk/addr2line.c Index: addr2line.c =================================================================== --- addr2line.c (revision 39932) +++ addr2line.c (revision 39933) @@ -731,7 +731,7 @@ ksprintn(char *nbuf, uintmax_t num, int https://github.com/ruby/ruby/blob/trunk/addr2line.c#L731 *++p = upper ? toupper(c) : c; } while (num /= base); if (lenp) - *lenp = p - nbuf; + *lenp = (int)(p - nbuf); return (p); } @@ -946,7 +946,7 @@ reswitch: switch (ch = (u_char)*fmt++) { https://github.com/ruby/ruby/blob/trunk/addr2line.c#L946 if (p == NULL) p = "(null)"; if (!dot) - n = strlen (p); + n = (int)strlen (p); else for (n = 0; n < dwidth && p[n]; n++) continue; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/