mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
Always take precision into account.
This commit is contained in:
parent
023843b23b
commit
791e6ff67d
1 changed files with 1 additions and 2 deletions
|
|
@ -3596,8 +3596,6 @@ usage: (format STRING &rest OBJECTS) */)
|
|||
/* Would get MPV otherwise, since Lisp_Int's `point' to low memory. */
|
||||
else if (INTEGERP (args[n]) && *format != 's')
|
||||
{
|
||||
thissize = 30;
|
||||
|
||||
/* The following loop assumes the Lisp type indicates
|
||||
the proper way to pass the argument.
|
||||
So make sure we have a flonum if the argument should
|
||||
|
|
@ -3613,6 +3611,7 @@ usage: (format STRING &rest OBJECTS) */)
|
|||
&& *format != 'i' && *format != 'X' && *format != 'c')
|
||||
error ("Invalid format operation %%%c", *format);
|
||||
|
||||
thissize = 30 + (precision[n] > 0 ? precision[n] : 0);
|
||||
if (*format == 'c')
|
||||
{
|
||||
if (! SINGLE_BYTE_CHAR_P (XINT (args[n]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue