aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2000-07-20 13:58:34 -0600
committerJeff Law <law@gcc.gnu.org>2000-07-20 13:58:34 -0600
commite9958132665bb66931895042efdffd1462ae4340 (patch)
tree924bf1bc9b7db4c0c327d8839e8ea4a26abedd4a /libiberty
parent266a442034c368f15e93cffa1bd42c3ea5eb7559 (diff)
downloadgcc-e9958132665bb66931895042efdffd1462ae4340.zip
gcc-e9958132665bb66931895042efdffd1462ae4340.tar.gz
gcc-e9958132665bb66931895042efdffd1462ae4340.tar.bz2
cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int, and print it with %u.
* cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int, and print it with %u. From-SVN: r35153
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/cplus-dem.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index d867941..e2d3813 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
+
+ * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
+ and print it with %u.
+
2000-07-17 Hans-Peter Nilsson <hp@axis.com>
* testsuite/regress-demangle (failed test): Show result and
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index 81ebbfc..5211348 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -3399,7 +3399,7 @@ demangle_fund_type (work, mangled, result)
int done = 0;
int success = 1;
char buf[10];
- int dec = 0;
+ unsigned int dec = 0;
string btype;
type_kind_t tk = tk_integral;
@@ -3543,7 +3543,7 @@ demangle_fund_type (work, mangled, result)
*mangled += min (strlen (*mangled), 2);
}
sscanf (buf, "%x", &dec);
- sprintf (buf, "int%i_t", dec);
+ sprintf (buf, "int%u_t", dec);
APPEND_BLANK (result);
string_append (result, buf);
break;