]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
added some extra typecasts to prevent compiler warnings when converting
authorDaniel Stenberg <daniel@haxx.se>
Sat, 21 Feb 2004 15:05:46 +0000 (15:05 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Feb 2004 15:05:46 +0000 (15:05 +0000)
int to various types

lib/mprintf.c

index 60fe81fe825aee7f4a60ac6ffe4cb1bdc77c2d41..f30db759e35230cdbfe0a8b28f49872f66ff7ff3 100644 (file)
@@ -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: