summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/snprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/snprintf.c b/main/snprintf.c
index e3e0993ab5..61a5dfffce 100644
--- a/main/snprintf.c
+++ b/main/snprintf.c
@@ -568,7 +568,7 @@ typedef struct buf_area buffy;
INS_CHAR( ch, sp, bep, cc ) ; \
width-- ; \
} \
- while ( width > len )
+ while ( (size_t)width > len )
/*
* Prefix the character ch to the string str
@@ -1188,7 +1188,7 @@ fmt_error:
s_len--;
min_width--;
}
- PAD((size_t)min_width, s_len, pad_char);
+ PAD(min_width, s_len, pad_char);
}
/*
* Print the string s.
@@ -1199,7 +1199,7 @@ fmt_error:
}
if (adjust_width && adjust == LEFT && (size_t)min_width > s_len)
- PAD((size_t)min_width, s_len, pad_char);
+ PAD(min_width, s_len, pad_char);
if (free_zcopy) {
zval_ptr_dtor_str(&zcopy);
}