Commit e9958132 by Joseph Myers Committed by Jeff Law

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
parent 266a4420
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> 2000-07-17 Hans-Peter Nilsson <hp@axis.com>
* testsuite/regress-demangle (failed test): Show result and * testsuite/regress-demangle (failed test): Show result and
......
...@@ -3399,7 +3399,7 @@ demangle_fund_type (work, mangled, result) ...@@ -3399,7 +3399,7 @@ demangle_fund_type (work, mangled, result)
int done = 0; int done = 0;
int success = 1; int success = 1;
char buf[10]; char buf[10];
int dec = 0; unsigned int dec = 0;
string btype; string btype;
type_kind_t tk = tk_integral; type_kind_t tk = tk_integral;
...@@ -3543,7 +3543,7 @@ demangle_fund_type (work, mangled, result) ...@@ -3543,7 +3543,7 @@ demangle_fund_type (work, mangled, result)
*mangled += min (strlen (*mangled), 2); *mangled += min (strlen (*mangled), 2);
} }
sscanf (buf, "%x", &dec); sscanf (buf, "%x", &dec);
sprintf (buf, "int%i_t", dec); sprintf (buf, "int%u_t", dec);
APPEND_BLANK (result); APPEND_BLANK (result);
string_append (result, buf); string_append (result, buf);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment