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

Suppress -Werror=shorten-64-to-32

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-03-26 01:42:33 +00:00
parent 76ba59645c
commit 4fa7a0d8df

View file

@ -731,7 +731,7 @@ ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper)
*++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++) {
if (p == NULL)
p = "(null)";
if (!dot)
n = strlen (p);
n = (int)strlen (p);
else
for (n = 0; n < dwidth && p[n]; n++)
continue;