mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:33:37 +03:00
Use more curl_off_t variables when doing the progress meter calculations and
argument passing and try to convert to double only when providing data to the external world.
This commit is contained in:
parent
50a1853560
commit
0d1fc73f21
8 changed files with 37 additions and 37 deletions
|
|
@ -1563,7 +1563,7 @@ CURLcode Curl_http(struct connectdata *conn)
|
|||
add_buffer(req_buffer, "\r\n", 2); /* end of headers */
|
||||
|
||||
/* set the upload size to the progress meter */
|
||||
Curl_pgrsSetUploadSize(data, (double)data->set.infilesize);
|
||||
Curl_pgrsSetUploadSize(data, data->set.infilesize);
|
||||
|
||||
/* this sends the buffer and frees all the buffer resources */
|
||||
result = add_buffer_send(req_buffer, conn,
|
||||
|
|
@ -1657,7 +1657,7 @@ CURLcode Curl_http(struct connectdata *conn)
|
|||
add_buffer(req_buffer, "\r\n", 2); /* end of headers! */
|
||||
|
||||
/* set the upload size to the progress meter */
|
||||
Curl_pgrsSetUploadSize(data, (double)data->set.infilesize);
|
||||
Curl_pgrsSetUploadSize(data, data->set.infilesize);
|
||||
|
||||
/* set the pointer to mark that we will send the post body using
|
||||
the read callback */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue