summaryrefslogtreecommitdiff
path: root/lib/mprintf.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-20 11:58:26 +0000
committerYang Tse <yangsita@gmail.com>2010-02-20 11:58:26 +0000
commita6fb6b70c7d08b9243aecff1fa059758ddf39e52 (patch)
tree5d8490f23833f8ef81fe2e7e15d86d9e6063f39b /lib/mprintf.c
parent2179ef9fa914c916b3f6e35519091d3e72b75d2c (diff)
downloadcurl-a6fb6b70c7d08b9243aecff1fa059758ddf39e52.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 3d65e9ff7..f5daa39fc 100644
--- a/lib/mprintf.c
+++ b/lib/mprintf.c
@@ -911,7 +911,7 @@ static int dprintf_formatf(
static const char strnil[] = "(nil)";
const char *point;
- width -= sizeof(strnil) - 1;
+ width -= (long)(sizeof(strnil) - 1);
if(p->flags & FLAGS_LEFT)
while(width-- > 0)
OUTCHAR(' ');