lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #51447] Sequence number comparisons invoke undefined b


From: Valery Ushakov
Subject: [lwip-devel] [bug #51447] Sequence number comparisons invoke undefined behavior
Date: Thu, 13 Jul 2017 17:54:17 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #6, bug #51447 (project lwip):

@abizjak - If you want to start nit-picking, you may at least try to be
careful about your own wording.  Your summary claims "undefined behavior", but
then you quote the relevant part of the standard that says
"implementation-defined behavior".

So, basically you complain that lwip assumes 2-complement.

@mywave - converting -1 to u32_t is done by repeatedly adding
("mathematically") UINT32_MAX+1, so (after just one iteration) you will get
the expected 0xffffffff

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?51447>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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