lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] lwip/src/core/tcp.c:622: error: comparison is always fa


From: address@hidden
Subject: Re: [lwip-users] lwip/src/core/tcp.c:622: error: comparison is always false due to limited range of data type
Date: Fri, 29 Apr 2011 13:23:39 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

Fixed, thanks for reporting!

Simon


bekanosky wrote:
Hello All.
I try to compile unixsim from contrib.
And i get error message as mentioned in the subject of my email.
By deleting '-Werror' from Makefile, the compilation goes fine.

The code in question is:
if (++port>  TCP_LOCAL_PORT_RANGE_END) {
      port = TCP_LOCAL_PORT_RANGE_START;
}

Can we change the code to:
if (port == TCP_LOCAL_PORT_RANGE_END) {
      port = TCP_LOCAL_PORT_RANGE_START;
    }
    else
        port++;


Thanks

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]