mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Replace size_t with unsigned long.
size_t is not compatible type for `%lu`.
This commit is contained in:
parent
370b47d23f
commit
7874cdf52a
1 changed files with 3 additions and 3 deletions
|
@ -2322,14 +2322,14 @@ static void test_new_parser_fuzzing(void)
|
|||
|
||||
double start = timef();
|
||||
bool log_it = true;
|
||||
size_t max_len = 5;
|
||||
for (size_t len = 0; len < max_len; len++)
|
||||
unsigned long max_len = 5;
|
||||
for (unsigned long len = 0; len < max_len; len++)
|
||||
{
|
||||
if (log_it)
|
||||
fprintf(stderr, "%lu / %lu...", len, max_len);
|
||||
|
||||
/* We wish to look at all permutations of 4 elements of 'fuzzes' (with replacement). Construct an int and keep incrementing it. */
|
||||
size_t permutation = 0;
|
||||
unsigned long permutation = 0;
|
||||
while (string_for_permutation(fuzzes, sizeof fuzzes / sizeof *fuzzes, len, permutation++, &src))
|
||||
{
|
||||
parse_tree_from_string(src, parse_flag_continue_after_error, &node_tree, &errors);
|
||||
|
|
Loading…
Reference in a new issue