On Mon, Nov 17, 2014 at 11:48:49PM +0900, Izumi Tsutsui wrote: > You don't think consistently using uint16_t assingments is not necessary. > I think it's necessary to explicitly describe how cksum should be > caluclated and written. Both are personal opinions, and I don't think > there is a "right" answer.
I'm sorry, but I have a hard time following the whole argument - there has to be a way to write the code clearly and readable but still avoid undefined behaviour (and not paper over it by disabling some optimizations in the current compiler). Martin