mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +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
|
|
@ -165,7 +165,7 @@ static int str_num_base(const char **linep, curl_off_t *nump, curl_off_t max,
|
|||
(base == 16) ? 'f' : '7';
|
||||
DEBUGASSERT(linep && *linep && nump);
|
||||
DEBUGASSERT((base == 8) || (base == 10) || (base == 16));
|
||||
DEBUGASSERT(max >= 0); /* mostly to catch SIZE_T_MAX, which is too large */
|
||||
DEBUGASSERT(max >= 0); /* mostly to catch SIZE_MAX, which is too large */
|
||||
*nump = 0;
|
||||
p = *linep;
|
||||
if(!valid_digit(*p, m))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue