Subject: Re: [PATCH iproute2 5/5] ifstat: fix warning about conditional

From: Petr Machata <[email-masked]>
Date: Thu, 29 Jun 2023 15:49:49 +0200

Stephen Hemminger <[email-masked]> writes:

> Gcc with warnings enabled complains because the conditional.
>   if ((long)(a - b) < 0)
> could be construed as never true.

Hmm, yeah, it would never be true where sizeof(long) > 4.

>                                    Change to simple comparison.
>
> Signed-off-by: Stephen Hemminger <[email-masked]>

Reviewed-by: Petr Machata <[email-masked]>