Fix for #71506: work around possible gcc bug
authorTony Cook <tony@develop-help.com>
Tue, 19 Jan 2010 14:07:21 +0000 (01:07 +1100)
committerVincent Pit <vince@profvince.com>
Tue, 19 Jan 2010 17:26:56 +0000 (18:26 +0100)
commit275663fa076b91276d12d914795b38d0f554c9e4
treebf1790a4e8d9c43a9d2d6ea248694d4beebff665
parentbd12309b58376140a53f4d708bb325f48df1ff70
Fix for #71506: work around possible gcc bug

When memcpy() is used on a long double pointer with gcc 4.4 in some
cases it seems to treat it as a long double assignment, copying only
the first 12 bytes.  Use unions so the types we're copying into the
pack output or from the unpack input are unsigned char[], to avoid the
apparent bug.
pp_pack.c