This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Fix various problems with "printf" and warnings


> 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.)?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]