[Top][All Lists]

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

[lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)

From: Bill Auerbach
Subject: [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)
Date: Wed, 12 May 2010 21:30:32 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)

Follow-up Comment #45, bug #27352 (project lwip):

Simon, there should be a problem either way.  Casting a pointer could give an
unaligned type no matter what the underlying type is.  A typedef is just
another name for the type - I bet the compiler handles either the same way.  I
know I've said it before, but casting pointers or addresses to pointers is not
portable as it can lead to unaligned results.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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