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:
parent
76ba59645c
commit
4fa7a0d8df
@ -731,7 +731,7 @@ ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper)
|
|||||||
*++p = upper ? toupper(c) : c;
|
*++p = upper ? toupper(c) : c;
|
||||||
} while (num /= base);
|
} while (num /= base);
|
||||||
if (lenp)
|
if (lenp)
|
||||||
*lenp = p - nbuf;
|
*lenp = (int)(p - nbuf);
|
||||||
return (p);
|
return (p);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -946,7 +946,7 @@ reswitch: switch (ch = (u_char)*fmt++) {
|
|||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
p = "(null)";
|
p = "(null)";
|
||||||
if (!dot)
|
if (!dot)
|
||||||
n = strlen (p);
|
n = (int)strlen (p);
|
||||||
else
|
else
|
||||||
for (n = 0; n < dwidth && p[n]; n++)
|
for (n = 0; n < dwidth && p[n]; n++)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user