aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-10 16:20:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-10 16:20:33 +0000
commit0d1fc73f2119e1f75f58b32cdc9f9d45fa71ac9c (patch)
treee50750dfe60d0c65b1a2247d6aa165a46d6b47d7 /lib/http.c
parent50a185356082f800e760ceb932c062bf194145d7 (diff)
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.
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index 37976ac78..9377d1ea1 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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 */