changeset 79427:cc15c80eebe7

Always take precision into account.
author Andreas Schwab <schwab@suse.de>
date Fri, 16 Nov 2007 00:18:16 +0000
parents 8f73cff047f4
children 576665ace786
files src/editfns.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Fri Nov 16 00:10:45 2007 +0000
+++ b/src/editfns.c	Fri Nov 16 00:18:16 2007 +0000
@@ -3596,8 +3596,6 @@
 	/* 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 @@
 		  && *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]))