diff options
author | Jeff Law <law@redhat.com> | 2000-07-20 20:22:28 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2000-07-20 20:22:28 +0000 |
commit | 802ba6bea9d4c090a847dd7180a9c34293d1a407 (patch) | |
tree | d6c5651d6b3305efaf1c433324f25fa5755545bd /libiberty | |
parent | aee11be563f1ec15170218c52cd72628a5d88c3f (diff) | |
download | gdb-802ba6bea9d4c090a847dd7180a9c34293d1a407.tar.gz |
* cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
and print it with %u.
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/cplus-dem.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index d867941a53c..e2d3813af9a 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 81ebbfcbe51..5211348064d 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; |