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 | 9adf30b218fdf913ebecc045e4edf698640506bc (patch) | |
tree | 5512928d5af2ace5d717432958f62df1f81d630d /libiberty/cplus-dem.c | |
parent | efaf0ba464effc023018f701deac5009958dc735 (diff) | |
download | gdb-9adf30b218fdf913ebecc045e4edf698640506bc.zip gdb-9adf30b218fdf913ebecc045e4edf698640506bc.tar.gz gdb-9adf30b218fdf913ebecc045e4edf698640506bc.tar.bz2 |
* cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
and print it with %u.
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 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; |