mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
curl_setup: use SIZE_MAX instead of SIZE_T_MAX
As SIZE_MAX exists in C99 Assisted-by: Stefan Eissing Assisted-by: Jay Satiro Ref: #18406 Closes #18426
This commit is contained in:
parent
7ceb9c54aa
commit
93f333c18f
13 changed files with 24 additions and 24 deletions
|
|
@ -218,15 +218,15 @@ static size_t get_max_body_write_len(struct Curl_easy *data, curl_off_t limit)
|
|||
return 0;
|
||||
}
|
||||
#if SIZEOF_CURL_OFF_T > SIZEOF_SIZE_T
|
||||
else if(remain_diff > SSIZE_T_MAX) {
|
||||
return SIZE_T_MAX;
|
||||
else if(remain_diff > SSIZE_MAX) {
|
||||
return SIZE_MAX;
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
return (size_t)remain_diff;
|
||||
}
|
||||
}
|
||||
return SIZE_T_MAX;
|
||||
return SIZE_MAX;
|
||||
}
|
||||
|
||||
struct cw_download_ctx {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue