summaryrefslogtreecommitdiff
path: root/lib/mprintf.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-20 01:15:10 +0000
committerYang Tse <yangsita@gmail.com>2010-02-20 01:15:10 +0000
commit2179ef9fa914c916b3f6e35519091d3e72b75d2c (patch)
treee44416de6a4050d171278e678c0fdaa93313744c /lib/mprintf.c
parent048438345aed2acbb044e107946a804bc2d02363 (diff)
downloadcurl-2179ef9fa914c916b3f6e35519091d3e72b75d2c.tar.gz
fix compiler warning
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r--lib/mprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c
index b0f1a9267..3d65e9ff7 100644
--- a/lib/mprintf.c
+++ b/lib/mprintf.c
@@ -871,7 +871,7 @@ static int dprintf_formatf(
len = strlen(str);
if(prec != -1 && (size_t) prec < len)
- len = prec;
+ len = (size_t)prec;
width -= (long)len;
if(p->flags & FLAGS_ALT)