Thread (261 messages) 261 messages, 12 authors, 3d ago

Re: [PATCH 5/6] cat-file: add declaration of variable i inside its for loop

From: Peijian Ju <hidden>
Date: 2024-07-16 02:59:44

On Wed, Jul 10, 2024 at 6:16 AM Karthik Nayak [off-list ref] wrote:
Eric Ju [off-list ref] writes:
quoted
Some code declares variable i and only uses it
in a for loop, not in any other logic outside the loop.

Change the declaration of i to be inside the for loop for readability.
If we're doing this anyways, we could replace the 'int' with 'size_t'
too.
Thank you. Fixed in V2
[snip]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help