2001-02-27 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/varargs.c (find_max_double): Fix printf format string: first arg is int not float.
This commit is contained in:
parent
917bca4f21
commit
d8f92b1f63
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-02-27 Michael Snyder <msnyder@mvstp600e.cygnus.com>
|
||||
|
||||
* gdb.base/varargs.c (find_max_double): Fix printf format string:
|
||||
first arg is int not float.
|
||||
|
||||
2001-02-22 Michael Snyder <msnyder@mvstp600e.cygnus.com>
|
||||
|
||||
* gdb.base/reread.exp: Unsupported for non-native targets;
|
||||
|
|
|
@ -99,7 +99,7 @@ double find_max_double(int num_vals, double first_val, ...) {
|
|||
va_start(argp, first_val);
|
||||
x = first_val;
|
||||
if (max_val < x) max_val = x;
|
||||
printf("find_max(%f, %f", num_vals, first_val);
|
||||
printf("find_max(%d, %f", num_vals, first_val);
|
||||
for (i = 1; i < num_vals; i++) {
|
||||
x = va_arg(argp, double);
|
||||
if (max_val < x) max_val = x;
|
||||
|
|
Loading…
Reference in a new issue