Marek Polacek <pola...@redhat.com> writes:
> +  /* Don't warn for e.g.
> +     HOST_WIDE_INT n;
> +     ...
> +     if (n == (long) n) ...
> +   */
> +  if ((CONVERT_EXPR_P (lhs) || TREE_CODE (lhs) == NON_LVALUE_EXPR)
> +      ^ (CONVERT_EXPR_P (rhs) || TREE_CODE (rhs) == NON_LVALUE_EXPR))
> +    return;

I might be misreading it, sorry, but it looks like the XOR means that
we'd still warn for:

  if ((HOST_WIDE_INT) n == (long) n) ...

in cases where HOST_WIDE_INT and long have the same precision.

Thanks,
Richard

Reply via email to