This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: Fix various problems with "printf" and warnings
- From: Eli Zaretskii <eliz at gnu dot org>
- To: gdb-patches at sourceware dot org
- Date: Sun, 22 Jan 2006 06:28:05 +0200
- Subject: Re: RFC: Fix various problems with "printf" and warnings
- References: <20060122003117.GC8088@nevyn.them.org>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Sat, 21 Jan 2006 19:31:17 -0500
> From: Daniel Jacobowitz <drow@false.org>
>
> + else if (*f == ' ')
> + seen_space = 1;
> + else if (*f == ' ')
> + seen_plus = 1;
A typo in the second "else if" clause.
> + case long_double_arg:
> +#ifdef HAVE_LONG_DOUBLE
> + {
> + long double val = value_as_double (val_args[i]);
> + printf_filtered (current_substring, val);
Won't `value_as_double' lose accuracy here, possibly catastrophically
(i.e., a non-zero number coming out as zero, etc.)?