summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-26 01:42:33 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-26 01:42:33 (GMT)
commit4fa7a0d8df9dd4dd623261087180d40bd457ff83 (patch)
treebbdb60c406946611c7bcab4d68674bc5d5f07e17 /addr2line.c
parent76ba59645c0078f03775ac766e1483529064808b (diff)
Suppress -Werror=shorten-64-to-32
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addr2line.c b/addr2line.c
index 5431a07..808ba73 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -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;