|
From: | Frédéric BERNON |
Subject: | Re: [lwip-users] Bug in inet_chksum_pseudo() produces bad checksum(Paradigm C++) |
Date: | Fri, 24 Aug 2007 16:15:13 +0200 |
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" <address@hidden>
To: <address@hidden> Sent: Friday, August 24, 2007 5:55 AMSubject: [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 address@hiddenhttp://lists.nongnu.org/mailman/listinfo/lwip-users
[Prev in Thread] | Current Thread | [Next in Thread] |