mirror of
https://github.com/curl/curl.git
synced 2026-05-30 04:27:30 +03:00
unit1664: drop casts, expand masks to full values
Follow-up to 4deea9396b #18814
Closes #18838
This commit is contained in:
parent
c96bf36557
commit
455d41d460
1 changed files with 6 additions and 6 deletions
|
|
@ -193,8 +193,8 @@ static CURLcode test_unit1664(const char *arg)
|
|||
const char *line = nums[i];
|
||||
const char *orgline = line;
|
||||
int rc = curlx_str_number(&line, &num, 1235);
|
||||
curl_mprintf("%u: (\"%s\") %d, [%u] line %d\n",
|
||||
i, orgline, rc, (int)num, (int)(line - orgline));
|
||||
curl_mprintf("%u: (\"%s\") %d, [%" CURL_FORMAT_CURL_OFF_T "] line %d\n",
|
||||
i, orgline, rc, num, (int)(line - orgline));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -388,8 +388,8 @@ static CURLcode test_unit1664(const char *arg)
|
|||
const char *line = nums[i];
|
||||
const char *orgline = line;
|
||||
int rc = curlx_str_hex(&line, &num, 0x1235);
|
||||
curl_mprintf("%u: (\"%s\") %d, [%u] line %d\n",
|
||||
i, orgline, rc, (int)num, (int)(line - orgline));
|
||||
curl_mprintf("%u: (\"%s\") %d, [%" CURL_FORMAT_CURL_OFF_T "] line %d\n",
|
||||
i, orgline, rc, num, (int)(line - orgline));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -415,8 +415,8 @@ static CURLcode test_unit1664(const char *arg)
|
|||
const char *line = nums[i];
|
||||
const char *orgline = line;
|
||||
int rc = curlx_str_octal(&line, &num, 01235);
|
||||
curl_mprintf("%u: (\"%s\") %d, [%u] line %d\n",
|
||||
i, orgline, rc, (int)num, (int)(line - orgline));
|
||||
curl_mprintf("%u: (\"%s\") %d, [%" CURL_FORMAT_CURL_OFF_T "] line %d\n",
|
||||
i, orgline, rc, num, (int)(line - orgline));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue