On Wed, 2008-04-16 at 16:55 +1000, [EMAIL PROTECTED] wrote:
> As an aside, my compiler is questioning line 947 from api-msg.c:-
>
> if ((conn->write_msg->msg.w.len - conn->write_offset > 0xffff)) { /*
> max_u16_t */
> len = 0xffff;
>
> with a warning that the comparison is always zero, which does beg the
> question how can a 16-bit variable/result ever exceed 0xffff?
The two variables being subtracted are of type int. This could easily
be greater than 16 bits on many (or even most) platforms.
Kieran
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users