Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6af41c87
Commit
6af41c87
authored
Nov 16, 2007
by
Andreas Schwab
Browse files
*** empty log message ***
parent
791e6ff6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
src/ChangeLog
src/ChangeLog
+2
-2
src/editfns.c
src/editfns.c
+1
-5
No files found.
src/ChangeLog
View file @
6af41c87
2007-11-15 Andreas Schwab <schwab@suse.de>
* editfns.c (Fformat): Correctly format EMACS_INT values.
When formatting an integer as float
take precision into account.
* editfns.c (Fformat): Correctly format EMACS_INT values.
Also
take precision into account
when formatting an integer
.
2007-11-15 Juanma Barranquero <lekktu@gmail.com>
...
...
src/editfns.c
View file @
6af41c87
...
...
@@ -3601,11 +3601,7 @@ usage: (format STRING &rest OBJECTS) */)
So make sure we have a flonum if the argument should
be a double. */
if
(
*
format
==
'e'
||
*
format
==
'f'
||
*
format
==
'g'
)
{
args
[
n
]
=
Ffloat
(
args
[
n
]);
if
(
precision
[
n
]
>
0
)
thissize
+=
precision
[
n
];
}
args
[
n
]
=
Ffloat
(
args
[
n
]);
else
if
(
*
format
!=
'd'
&&
*
format
!=
'o'
&&
*
format
!=
'x'
&&
*
format
!=
'i'
&&
*
format
!=
'X'
&&
*
format
!=
'c'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment