From: Junio C Hamano <gitster@pobox.com>
To: "Rose via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Seija Kijin <doremylover123@gmail.com>
Subject: Re: [PATCH v3] git: edit variable types to match what is assigned to them
Date: Sat, 17 Dec 2022 08:52:46 +0900 [thread overview]
Message-ID: <xmqqmt7mkisx.fsf@gitster.g> (raw)
In-Reply-To: <pull.1399.v3.git.git.1671228557381.gitgitgadget@gmail.com> (Rose via GitGitGadget's message of "Fri, 16 Dec 2022 22:09:16 +0000")
"Rose via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: Seija Kijin <doremylover123@gmail.com>
>
> There are many places where "int len = strlen(foo);" is written,
> just for len to be passed as a parameter of size_t.
True.
> This causes truncation and then expansion
> back from int to size_t.
>
> Not to mention, this is poor logic,
> and needless truncations can add
> extra unneeded instructions.
I'd omit the last paragraph if I were writing it, as these two
paragraphs saying exactly the same thing.
next prev parent reply other threads:[~2022-12-16 23:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 2:29 [PATCH] git: edit variable types to match what is assigned to them Rose via GitGitGadget
2022-12-16 3:36 ` Junio C Hamano
2022-12-16 17:19 ` [PATCH v2] " Rose via GitGitGadget
2022-12-16 22:09 ` [PATCH v3] " Rose via GitGitGadget
2022-12-16 23:52 ` Junio C Hamano [this message]
2022-12-21 5:01 ` [PATCH v4] " Rose via GitGitGadget
2022-12-23 19:26 ` [PATCH v5] " Rose via GitGitGadget
2022-12-23 19:35 ` [PATCH v6] " Rose via GitGitGadget
2022-12-23 19:40 ` [PATCH v7] " Rose via GitGitGadget
2022-12-23 19:43 ` [PATCH v8] " Rose via GitGitGadget
2022-12-23 19:46 ` [PATCH v9] " Rose via GitGitGadget
2022-12-23 19:52 ` [PATCH v10] " Rose via GitGitGadget
2022-12-29 15:45 ` [PATCH v11] " Rose via GitGitGadget
2022-12-29 16:11 ` [PATCH v12] " Rose via GitGitGadget
2023-01-03 17:37 ` [PATCH v13] " Rose via GitGitGadget
2023-01-08 14:52 ` [PATCH v14] git: change " Rose via GitGitGadget
2023-01-08 19:03 ` [PATCH v15] " Rose via GitGitGadget
2023-03-15 13:20 ` [PATCH v16] " Rose via GitGitGadget
2023-03-15 13:26 ` [PATCH v17] " Rose via GitGitGadget
2023-03-15 19:09 ` [PATCH v16] " Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqmt7mkisx.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=doremylover123@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.