[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Ok- Where Are They? #2
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] Ok- Where Are They? #2 |
Date: |
Wed, 16 Apr 2008 08:44:34 +0100 |
On Wed, 2008-04-16 at 16:55 +1000, address@hidden 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