aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-21 15:05:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-21 15:05:46 +0000
commit4bde770169c05653726956c9bf866aec19ddfe1c (patch)
treecd1abf198c877a84951ffc38cf3fd506f9de66fa
parent9af7e46f72903c7b7e8138d68e6a7a9f13672081 (diff)
added some extra typecasts to prevent compiler warnings when converting
int to various types
-rw-r--r--lib/mprintf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c
index 60fe81fe8..f30db759e 100644
--- a/lib/mprintf.c
+++ b/lib/mprintf.c
@@ -939,15 +939,15 @@ static int dprintf_formatf(
/* Answer the count of characters written. */
#ifdef HAVE_LONGLONG
if (p->flags & FLAGS_LONGLONG)
- *(long long int *) p->data.ptr = done;
+ *(long long *) p->data.ptr = (long long)done;
else
#endif
if (p->flags & FLAGS_LONG)
- *(long int *) p->data.ptr = done;
+ *(long *) p->data.ptr = (long)done;
else if (!(p->flags & FLAGS_SHORT))
- *(int *) p->data.ptr = done;
+ *(int *) p->data.ptr = (int)done;
else
- *(short int *) p->data.ptr = done;
+ *(short *) p->data.ptr = (short)done;
break;
default: