transfer: warning: implicit conversion
authorDaniel Stenberg <daniel@haxx.se>
Tue, 8 Jun 2010 08:36:06 +0000 (10:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Jun 2010 08:36:06 +0000 (10:36 +0200)
There is an implicit conversion from "unsigned long" to "long";
rounding, sign extension, or loss of accuracy may result.

Fixed by an added typecast.

lib/transfer.c

index 191d3dc..41bf2fe 100644 (file)
@@ -734,7 +734,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
 
       /* Parse the excess data */
       k->str += nread;
-      nread = excess;
+      nread = (ssize_t)excess;
 
       result = Curl_rtsp_rtp_readwrite(data, conn, &nread, &readmore);
       if(result)