Re: [PATCH v2] ref-filter: sort numerically when ":size" is used
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 2, 2023, 22:19 UTC
- Message-ID
- <xmqqy1hokykh.fsf@gitster.g>
- In-Reply-To
- <20230902090155.8978-1-five231003@gmail.com>
Kousik Sanagavarapu <five231003@gmail.com> writes:
Show 6 quoted lines
> } else if (atom->u.raw_data.option == RAW_LENGTH) {
> - v->s = xstrfmt("%"PRIuMAX, (uintmax_t)buf_size);
> + v->value = buf_size;
> + v->s = xstrfmt("%"PRIuMAX, v->value);
> }
> continue;Interesting that typeof(.value) happens to be uintmax_t, keeping this a safe change.