projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b47d23
)
transfer: warning: implicit conversion
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 8 Jun 2010 08:36:06 +0000
(10:36 +0200)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/lib/transfer.c
b/lib/transfer.c
index
191d3dc
..
41bf2fe
100644
(file)
--- a/
lib/transfer.c
+++ b/
lib/transfer.c
@@
-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)