Commit 6af41c87 authored by Andreas Schwab's avatar Andreas Schwab
Browse files

*** empty log message ***

parent 791e6ff6
2007-11-15 Andreas Schwab <schwab@suse.de> 2007-11-15 Andreas Schwab <schwab@suse.de>
   
* editfns.c (Fformat): Correctly format EMACS_INT values. * editfns.c (Fformat): Correctly format EMACS_INT values. Also
When formatting an integer as float take precision into account. take precision into account when formatting an integer.
   
2007-11-15 Juanma Barranquero <lekktu@gmail.com> 2007-11-15 Juanma Barranquero <lekktu@gmail.com>
   
......
...@@ -3601,11 +3601,7 @@ usage: (format STRING &rest OBJECTS) */) ...@@ -3601,11 +3601,7 @@ usage: (format STRING &rest OBJECTS) */)
So make sure we have a flonum if the argument should So make sure we have a flonum if the argument should
be a double. */ be a double. */
if (*format == 'e' || *format == 'f' || *format == 'g') if (*format == 'e' || *format == 'f' || *format == 'g')
{ args[n] = Ffloat (args[n]);
args[n] = Ffloat (args[n]);
if (precision[n] > 0)
thissize += precision[n];
}
else else
if (*format != 'd' && *format != 'o' && *format != 'x' if (*format != 'd' && *format != 'o' && *format != 'x'
&& *format != 'i' && *format != 'X' && *format != 'c') && *format != 'i' && *format != 'X' && *format != 'c')
......
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