From: Junio C Hamano Date: Sat, 02 Sep 2023 22:19:42 GMT Subject: Re: [PATCH v2] ref-filter: sort numerically when ":size" is used Message-ID: In-Reply-To: <20230902090155.8978-1-five231003@gmail.com> Kousik Sanagavarapu writes: > } 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.