lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] Strange "always true" conditional in tcp_in.c


From: Bill Auerbach
Subject: RE: [lwip-users] Strange "always true" conditional in tcp_in.c
Date: Mon, 1 Mar 2010 11:44:08 -0500

>I wonder if there are other similar cases lurking in the code that we
>also need to fix.  Perhaps the original poster (John Carter) whose
>compiler was warning about this could make a list and file a bug report?

I think mixing chars with ints or longs should be reviewed although
truncation warnings help a lot in this respect and it's likely not an issue,
except in specific cases like this overflow check.

>It's true that there are lots of languages that would not have this sort
>of subtle bug.  I wonder if we should re-write lwIP in OCaml? ;)

:-)

Bill





reply via email to

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