Commit d0183d38 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fformat): Properly print floats.

parent 80370c1c
......@@ -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]));
sprintf (p, this_format, XFLOAT (args[n])->data);
this_nchars = strlen (p);
p += this_nchars;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment