Hi Dave,
I don't understand why Paradigm C++ misunderstand "while (acc >> 16)". Do
you have report the problem to paradigm support ?
Else, can you give us the bug ID from 2002 which already report that?
Thank
----- Original Message -----
From: "Dave Lyneham" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, August 24, 2007 5:55 AM
Subject: [lwip-users] Bug in inet_chksum_pseudo() produces bad
checksum(Paradigm C++)
Hi All,
inet_chksum_pseudo() had been producing bad checksum when compiled
under Paradigm C++. Tracked problem down to the conditional based on
bitwise shift right as in:
while (acc >> 16) {
This conditional is never true, but works when changed to
while ((acc >> 16) > 0) {
I notice there was a report of a bug in 2002 for the same function
producing bad checksum, maybe this was also the cause in that case.
Cheers
Dave
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users