]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_scan.c
dtimezone(): Explain abs(3) is undefined on INT_MIN.
[nmh] / sbr / fmt_scan.c
index de7d8b783b3d26e1682b87cc328cfc0435ec44eb..c75db3ec95fb0c6953dad86efd7d9e259b667e74 100644 (file)
@@ -14,6 +14,7 @@
 #include <h/tws.h>
 #include <h/fmt_compile.h>
 #include <h/utils.h>
+#include "unquote.h"
 
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
@@ -470,7 +471,7 @@ fmt_scan (struct format *format, charstring_t scanlp, int width, int *dat,
            int num = value;
            unsigned int wid;
 
-           for (wid = num <= 0  ?  1  :  0; num; ++wid, num /= 10) {}
+            for (wid = num <= 0; num; ++wid, num /= 10) {}
            cpnumber (scanlp, value, wid, ' ',
                      max - charstring_chars (scanlp));
            break;