> Quoting Roland Dreier <[EMAIL PROTECTED]>:
> Subject: Re: integer overflow
> 
>  >    while ((int) priv->tx_tail - (int) priv->tx_head < 0) {
>  > 
>  > seems to rely on integer overflow which seems to be
>  > undefined behaviour.
> 
> tx_tail and tx_head are unsigned, and overflow is defined for unsigned
> integers.

Yes but we cast them to signed int here - no?


-- 
MST

_______________________________________________
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to