From 8cea1f890758da901916ba331bf4b524e4e54e00 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 19 Aug 2017 15:51:08 +0900 Subject: Use `ptrdiff_t` instead of `int`. --- src/fmt_fp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fmt_fp.c') diff --git a/src/fmt_fp.c b/src/fmt_fp.c index c1c2ad703..803343233 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -61,7 +61,7 @@ out(struct fmt_args *f, const char *s, size_t l) #define PAD_SIZE 256 static void -pad(struct fmt_args *f, char c, int w, int l, uint8_t fl) +pad(struct fmt_args *f, char c, int w, ptrdiff_t l, uint8_t fl) { char pad[PAD_SIZE]; if (fl & (LEFT_ADJ | ZERO_PAD) || l >= w) return; @@ -101,7 +101,7 @@ fmt_fp(struct fmt_args *f, long double y, int w, int p, uint8_t fl, int t) ptrdiff_t l; char buf[9+LDBL_MANT_DIG/4], *s; const char *prefix="-0X+0X 0X-0x+0x 0x"; - int pl; + ptrdiff_t pl; char ebuf0[3*sizeof(int)], *ebuf=&ebuf0[3*sizeof(int)], *estr; pl=1; -- cgit v1.2.3