From: Andreas Schwab Date: Fri, 16 Nov 2007 00:19:41 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: emacs-pretest-22.1.90~359 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6af41c87dfc91b3cc980467b074e5efed3998ed5;p=emacs.git *** empty log message *** --- diff --git a/src/ChangeLog b/src/ChangeLog index 96b0d5f5e3f..e620d1e9e9e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,7 +1,7 @@ 2007-11-15 Andreas Schwab - * editfns.c (Fformat): Correctly format EMACS_INT values. - When formatting an integer as float take precision into account. + * editfns.c (Fformat): Correctly format EMACS_INT values. Also + take precision into account when formatting an integer. 2007-11-15 Juanma Barranquero diff --git a/src/editfns.c b/src/editfns.c index 06fb1413b02..bcfe5756034 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3601,11 +3601,7 @@ usage: (format STRING &rest OBJECTS) */) So make sure we have a flonum if the argument should be a double. */ if (*format == 'e' || *format == 'f' || *format == 'g') - { - args[n] = Ffloat (args[n]); - if (precision[n] > 0) - thissize += precision[n]; - } + args[n] = Ffloat (args[n]); else if (*format != 'd' && *format != 'o' && *format != 'x' && *format != 'i' && *format != 'X' && *format != 'c')