Re: [PATCH 07/14] csum-file: define hashwrite's count as a uint32_t
- From
Ezekiel Newren <ezekielnewren@gmail.com>
- Date
- Oct 28, 2025, 17:22 UTC
- Message-ID
- <CAH=ZcbDYq1A79rNmFULtwPMM2z+4zBH-DCgCFOEA4Pt1D76Swg@mail.gmail.com>
- In-Reply-To
- <20251027004404.2152927-8-sandals@crustytoothpaste.net>
On Sun, Oct 26, 2025 at 6:44 PM brian m. carlson <sandals@crustytoothpaste.net> wrote:
Show 5 quoted lines
> > We want to call this code from Rust and ensure that the types are the > same for compatibility, which is easiest to do if the type is a fixed > size. Since unsigned int is 32 bits on all the platforms we care about, > define it as a uint32_t instead.
I'm always in favor of converting to unambiguous types.