diff options
author | Paul Smith <psmith@gnu.org> | 2022-10-03 15:06:12 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2022-10-03 16:08:14 -0400 |
commit | 3e20e376b7aa26fa43f81f23323c717c4cae1bfb (patch) | |
tree | 9de01ab8352ad2cb2b5e8499017a9ba3996a5227 /src/shuffle.c | |
parent | 7ddfc42ee3ab330fa51b10768bee94a140750a1f (diff) | |
download | make-git-3e20e376b7aa26fa43f81f23323c717c4cae1bfb.tar.gz |
Clean up some warnings on Windows builds
* src/arscan.c (parse_int): Avoid conversion from int to char and
check for overflow given a max value.
(ar_scan): Check intmax sizes then cast to the proper type.
(ar_member_touch): Get proper return type from ar_scan and cast it
to off_t.
* src/function.c (a_word_hash_cmp): Don't cast from size_t to int.
(func_filter_filterout): Count using unsigned long to avoid casts.
(construct_include_path): Explicitly cast to void*.
* src/shuffle.c (reverse_shuffle_array): Use size_t index.
* src/w32/subproc/sub_proc.c (process_wait_for_multiple_objects):
Initialize the return value in case the count is 0.
Diffstat (limited to 'src/shuffle.c')
-rw-r--r-- | src/shuffle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shuffle.c b/src/shuffle.c index 5f68caf6..4cfdc943 100644 --- a/src/shuffle.c +++ b/src/shuffle.c @@ -128,7 +128,7 @@ reverse_shuffle_array (void **a, size_t len) void *t; /* Pick mirror and swap. */ - unsigned int j = len - 1 - i; + size_t j = len - 1 - i; /* Swap. */ t = a[i]; |