aboutsummaryrefslogtreecommitdiff
path: root/lib/mprintf.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-26 13:08:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-26 13:08:49 +0000
commit6b1220b61d5ed2481dbf31714a68be6ef6eed3da (patch)
tree2fdb2eb09bbfae448dc87dc0e9fc214452cb12e1 /lib/mprintf.c
parent9d7330d8790be54c3885e23359b25534974cfb82 (diff)
Cory Nelson's work on nuking compiler warnings when building on x64 with
VS2005.
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r--lib/mprintf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c
index 30f0f7aa5..b9fe238f9 100644
--- a/lib/mprintf.c
+++ b/lib/mprintf.c
@@ -759,8 +759,8 @@ static int dprintf_formatf(
*w-- = digits[num % base];
num /= base;
}
- width -= workend - w;
- prec -= workend - w;
+ width -= (long)(workend - w);
+ prec -= (long)(workend - w);
if (alt && base == 8 && prec <= 0) {
*w-- = '0';
@@ -839,7 +839,7 @@ static int dprintf_formatf(
if (prec != -1 && (size_t) prec < len)
len = prec;
- width -= len;
+ width -= (long)len;
if (p->flags & FLAGS_ALT)
OUTCHAR('"');
@@ -869,7 +869,7 @@ static int dprintf_formatf(
base = 16;
digits = (p->flags & FLAGS_UPPER)? upper_digits : lower_digits;
alt = 1;
- num = (unsigned long) ptr;
+ num = (size_t) ptr;
is_neg = 0;
goto number;
}