Re: [GSOC][PATCH v2 5/6] apply: use `size_t` loop counters
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Feb 13, 2025, 06:08 UTC
- Message-ID
- <Z62MVV_GfzTWIn7W@pks.im>
- In-Reply-To
- <20250209081216.241350-6-jelly.zhao.42@gmail.com>
On Sun, Feb 09, 2025 at 08:12:15AM +0000, Zejun Zhao wrote:
Show 16 quoted lines
> diff --git a/apply.c b/apply.c
> index 72464fb6c2..585f534732 100644
> --- a/apply.c
> +++ b/apply.c
> @@ -2419,9 +2416,9 @@ static int line_by_line_fuzzy_match(struct image *img,
> struct image *postimage,
> unsigned long current,
> int current_lno,
> - int preimage_limit)
> + size_t preimage_limit)
> {
> - int i;
> + size_t i;
> size_t imgoff = 0;
> size_t preoff = 0;
> size_t extra_chars;This one does more than just changing the loop counters. Probably makes sense to split out into a separate commit.
Patrick