emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 1af7410 1/4: * src/editfns.c (styled_format): Omit


From: Paul Eggert
Subject: [Emacs-diffs] master 1af7410 1/4: * src/editfns.c (styled_format): Omit unnecessary code for "%0d" etc.
Date: Sun, 5 Mar 2017 02:18:44 -0500 (EST)

branch: master
commit 1af7410a2333fdadc68edb9d4890434d75ebaf5e
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    * src/editfns.c (styled_format): Omit unnecessary code for "%0d" etc.
---
 src/editfns.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/editfns.c b/src/editfns.c
index d50ea83..db9ad06 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -4270,16 +4270,15 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool 
message)
              /* Create the copy of the conversion specification, with
                 any width and precision removed, with ".*" inserted,
                 and with pM inserted for integer formats.
-                At most three flags F can be specified at once.  */
-             char convspec[sizeof "%FFF.*d" + pMlen];
+                At most two flags F can be specified at once.  */
+             char convspec[sizeof "%FF.*d" + pMlen];
              {
                char *f = convspec;
                *f++ = '%';
-               /* MINUS_FLAG is dealt with later.  */
+               /* MINUS_FLAG and ZERO_FLAG are dealt with later.  */
                *f = '+'; f +=  plus_flag;
                *f = ' '; f += space_flag;
                *f = '#'; f += sharp_flag;
-               *f = '0'; f +=  zero_flag;
                 *f++ = '.';
                 *f++ = '*';
                if (conversion == 'd' || conversion == 'i'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]