diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-04-22 23:54:43 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-04-22 23:54:43 +0000 | 
| commit | 192606bc4b4f8ab45aff24b33f01b7af1e4d4704 (patch) | |
| tree | 6816ceeaa46d59e8a74f920b343a1a79f12000c2 | |
| parent | 53a9fdf078a96ccca2ef8c7f163fc8a5f58a7f32 (diff) | |
use double where it is supposed to
| -rw-r--r-- | lib/file.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/file.c b/lib/file.c index e84cd4ce2..4515d9d94 100644 --- a/lib/file.c +++ b/lib/file.c @@ -140,7 +140,7 @@ CURLcode Curl_file(struct connectdata *conn)    */    CURLcode res = CURLE_OK;    struct stat statbuf; -  ssize_t expected_size=-1; +  double expected_size=-1;    ssize_t nread;    struct SessionHandle *data = conn->data;    char *buf = data->state.buffer; @@ -155,7 +155,7 @@ CURLcode Curl_file(struct connectdata *conn)  /*VMS?? -- This only works reliable for STREAMLF files */    if( -1 != fstat(fd, &statbuf)) {      /* we could stat it, then read out the size */ -    expected_size = statbuf.st_size; +    expected_size = (double)statbuf.st_size;    }    /* The following is a shortcut implementation of file reading | 
