mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
(Fformat): Properly print floats.
This commit is contained in:
parent
80370c1cec
commit
d0183d383d
@ -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…
Reference in New Issue
Block a user