1
0
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:
Richard M. Stallman 1998-03-17 08:16:35 +00:00
parent 80370c1cec
commit d0183d383d

View File

@ -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;