From: Andreas Schwab Date: Fri, 16 Nov 2007 00:19:22 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: emacs-pretest-23.0.90~9709 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0df5538d11cc14c88fb20ad233d6c545c73d6b9c;p=emacs.git *** empty log message *** --- diff --git a/src/ChangeLog b/src/ChangeLog index 3a74e58061e..f0a2e29bfee 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. * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration. diff --git a/src/editfns.c b/src/editfns.c index fae485ae709..008cc3a95bf 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3599,9 +3599,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]); - } + args[n] = Ffloat (args[n]); else if (*format != 'd' && *format != 'o' && *format != 'x' && *format != 'i' && *format != 'X' && *format != 'c')