On Wed, 17 Jul 2024, Jakub Jelinek wrote:
> Hi!
>
> Apparently there is a -Wsign-compare warning if ptrdiff_t has precision of
> int, then (t - s + 1 + 2) / 3 * 4 has int type while cnt unsigned int.
> This doesn't warn if ptrdiff_t has larger precision, say on x86_64
> it is 64-bit and so (t - s
Hi!
Apparently there is a -Wsign-compare warning if ptrdiff_t has precision of
int, then (t - s + 1 + 2) / 3 * 4 has int type while cnt unsigned int.
This doesn't warn if ptrdiff_t has larger precision, say on x86_64
it is 64-bit and so (t - s + 1 + 2) / 3 * 4 has long type and cnt unsigned
int.