tests: fix a type warning on 32-bit x86

This commit is contained in:
Dan Fandrich 2023-09-04 17:07:51 -07:00
parent 205d686ce1
commit 876278935f

View File

@ -206,7 +206,7 @@ int main(int argc, char *argv[])
CURL *curl;
CURLcode res = CURLE_OK;
const char *url;
curl_off_t l1, l2;
long l1, l2;
size_t plen_min, plen_max;
@ -217,12 +217,12 @@ int main(int argc, char *argv[])
url = argv[1];
l1 = strtol(argv[2], NULL, 10);
if(l1 < 0) {
fprintf(stderr, "minlen must be >= 0, got %ld\n", (long)l1);
fprintf(stderr, "minlen must be >= 0, got %ld\n", l1);
return 2;
}
l2 = strtol(argv[3], NULL, 10);
if(l2 < 0) {
fprintf(stderr, "maxlen must be >= 0, got %ld\n", (long)l2);
fprintf(stderr, "maxlen must be >= 0, got %ld\n", l2);
return 2;
}
plen_min = l1;