aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2007-11-16 00:18:16 +0000
committerAndreas Schwab2007-11-16 00:18:16 +0000
commit791e6ff67d2d04940e1771d98bfe044821ccf31c (patch)
tree1fa359e74997c7f690a2a2deca70dd490f35a6eb /src
parent023843b23be2d285d7ccce4411bdded310c65155 (diff)
downloademacs-791e6ff67d2d04940e1771d98bfe044821ccf31c.tar.gz
emacs-791e6ff67d2d04940e1771d98bfe044821ccf31c.zip
Always take precision into account.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c
index c4b8aa073d3..06fb1413b02 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3596,8 +3596,6 @@ usage: (format STRING &rest OBJECTS) */)
3596 /* Would get MPV otherwise, since Lisp_Int's `point' to low memory. */ 3596 /* Would get MPV otherwise, since Lisp_Int's `point' to low memory. */
3597 else if (INTEGERP (args[n]) && *format != 's') 3597 else if (INTEGERP (args[n]) && *format != 's')
3598 { 3598 {
3599 thissize = 30;
3600
3601 /* The following loop assumes the Lisp type indicates 3599 /* The following loop assumes the Lisp type indicates
3602 the proper way to pass the argument. 3600 the proper way to pass the argument.
3603 So make sure we have a flonum if the argument should 3601 So make sure we have a flonum if the argument should
@@ -3613,6 +3611,7 @@ usage: (format STRING &rest OBJECTS) */)
3613 && *format != 'i' && *format != 'X' && *format != 'c') 3611 && *format != 'i' && *format != 'X' && *format != 'c')
3614 error ("Invalid format operation %%%c", *format); 3612 error ("Invalid format operation %%%c", *format);
3615 3613
3614 thissize = 30 + (precision[n] > 0 ? precision[n] : 0);
3616 if (*format == 'c') 3615 if (*format == 'c')
3617 { 3616 {
3618 if (! SINGLE_BYTE_CHAR_P (XINT (args[n])) 3617 if (! SINGLE_BYTE_CHAR_P (XINT (args[n]))