diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-20 19:58:34 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-20 19:58:34 +0000 |
commit | 6cb730c2b49cfbe99d4d9e85e2e81f78296222b4 (patch) | |
tree | 924bf1bc9b7db4c0c327d8839e8ea4a26abedd4a /libiberty/cplus-dem.c | |
parent | 04b069ce04635cce325e3543ec32a96bf1a75615 (diff) | |
download | gcc-6cb730c2b49cfbe99d4d9e85e2e81f78296222b4.tar.gz |
* cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
and print it with %u.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35153 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/cplus-dem.c')
-rw-r--r-- | libiberty/cplus-dem.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |