aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Kaufmann <mail@michael-kaufmann.ch>2017-09-23 14:43:55 +0200
committerMichael Kaufmann <mail@michael-kaufmann.ch>2017-09-23 14:49:59 +0200
commitb6a90bca335b08971371fbceeae694d970aebcb6 (patch)
treed1c719e5f8f1c477edfcf52955e3beda3927b934 /tests
parent3a1c7cb3ca509417ac7b8269529ceacee08d1d6c (diff)
tests: fix a compiler warning in test 643
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib643.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libtest/lib643.c b/tests/libtest/lib643.c
index c9d525bc2..e26a2515f 100644
--- a/tests/libtest/lib643.c
+++ b/tests/libtest/lib643.c
@@ -35,7 +35,7 @@ static char data[]=
struct WriteThis {
char *readptr;
- size_t sizeleft;
+ curl_off_t sizeleft;
};
static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp)
@@ -55,7 +55,7 @@ static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp)
return 0;
#ifndef LIB645
- eof = !pooh->sizeleft;
+ eof = pooh->sizeleft <= 0;
if(!eof)
pooh->sizeleft--;
#endif
@@ -83,7 +83,7 @@ static int once(char *URL, bool oldstyle)
pooh.readptr = data;
#ifndef LIB645
- datasize = strlen(data);
+ datasize = (curl_off_t)strlen(data);
#endif
pooh.sizeleft = datasize;
@@ -138,7 +138,7 @@ static int once(char *URL, bool oldstyle)
pooh2.readptr = data;
#ifndef LIB645
- datasize = strlen(data);
+ datasize = (curl_off_t)strlen(data);
#endif
pooh2.sizeleft = datasize;