diff options
| author | Richard M. Stallman | 1998-03-17 08:16:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-03-17 08:16:35 +0000 |
| commit | d0183d383dd62db96c42e3ee27d308f39afffa22 (patch) | |
| tree | f7042289b93828bcc725a53a1db6a48c99b5ee5f /src/editfns.c | |
| parent | 80370c1cecf15fa2e87c515434c593287e5ff604 (diff) | |
| download | emacs-d0183d383dd62db96c42e3ee27d308f39afffa22.tar.gz emacs-d0183d383dd62db96c42e3ee27d308f39afffa22.zip | |
(Fformat): Properly print floats.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index 587e751efc7..f25b6aa8f34 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2424,7 +2424,10 @@ Use %% to put a single % into the output.") | |||
| 2424 | format - this_format_start); | 2424 | format - this_format_start); |
| 2425 | this_format[format - this_format_start] = 0; | 2425 | this_format[format - this_format_start] = 0; |
| 2426 | 2426 | ||
| 2427 | sprintf (p, this_format, XINT (args[n])); | 2427 | if (INTEGERP (args[n])) |
| 2428 | sprintf (p, this_format, XINT (args[n])); | ||
| 2429 | else | ||
| 2430 | sprintf (p, this_format, XFLOAT (args[n])->data); | ||
| 2428 | 2431 | ||
| 2429 | this_nchars = strlen (p); | 2432 | this_nchars = strlen (p); |
| 2430 | p += this_nchars; | 2433 | p += this_nchars; |