# HG changeset patch # User Matti Hamalainen # Date 1206973670 -10800 # Node ID ac8d871b60753f88af741e00ddfd194cf4174b20 # Parent 2c3390afe10e00c64d647f864553ce7109c1a389 Oops, some text was missing. diff -r 2c3390afe10e -r ac8d871b6075 HACKING --- a/HACKING Mon Mar 31 17:21:21 2008 +0300 +++ b/HACKING Mon Mar 31 17:27:50 2008 +0300 @@ -53,7 +53,10 @@ equal to some other platform. Some clever people might think that making struct "packed" via the - C packed qualifier would be a solution, but this will + C packed qualifier would be a solution, but this will cause problems + on platforms which require words to be aligned in memory - so it + "works" on x86 (with performance penalty), but will fail with bus error + on elsewhere. What you SHOULD do is read individual members of the struct one by one from the stream. This may sound bothersome, but by doing so, your code