[Box Backup-dev] PPC workaround (was: COMMIT r436 - in box/trunk: . lib/raidfile)
Jonathan Morton
boxbackup-dev at fluffy.co.uk
Sun Feb 12 12:13:56 GMT 2006
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-5-377962671
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> This is the reason I took the decision to rewrite that section of code
> in such a way that I could be sure the bug would never be triggered,
> while also trying to improve code readability. The result uses no
> casts,
> is simple code that the compiler should be very safe with, and to me
> seems easier to follow.
Regardless of whether the compiler can optimise a memcpy() away, I
think the right way to correct a problem of this type is to use a
union. Casting via pointers is really a hackish way to do a union
anyway, and not as good. I'll fix it at my end, after checking that
your fix actually works.
--------------------------------------------------------------
from: Jonathan "Chromatix" Morton
mail: chromi at chromatix.org.uk
website: http://www.chromatix.uklinux.net/
tagline: The key to knowledge is not to rely on people to teach you it.
--Apple-Mail-5-377962671
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iEYEARECAAYFAkPvJoQACgkQ6xAxI1ofIwqLUQCdFm9PYGx63ZGNpx+KcfVrjCnl
rCYAn2VbPZdIXG5KjMLjJ9rFbxI7IMP0
=gE0O
-----END PGP SIGNATURE-----
--Apple-Mail-5-377962671--
More information about the Boxbackup-dev
mailing list