mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 07:41:28 -08:00
(Fformat): Properly print floats.
This commit is contained in:
parent
80370c1cec
commit
d0183d383d
1 changed files with 4 additions and 1 deletions
|
|
@ -2424,7 +2424,10 @@ Use %% to put a single % into the output.")
|
|||
format - this_format_start);
|
||||
this_format[format - this_format_start] = 0;
|
||||
|
||||
sprintf (p, this_format, XINT (args[n]));
|
||||
if (INTEGERP (args[n]))
|
||||
sprintf (p, this_format, XINT (args[n]));
|
||||
else
|
||||
sprintf (p, this_format, XFLOAT (args[n])->data);
|
||||
|
||||
this_nchars = strlen (p);
|
||||
p += this_nchars;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue