This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
handy.h Cast to unsigned before doing xor
authorKarl Williamson <khw@cpan.org>
Sun, 14 Dec 2014 17:39:14 +0000 (10:39 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 31 Dec 2014 04:30:09 +0000 (21:30 -0700)
commit75763b3aeee4912655f280922a10857e88d74104
tree0e067c7a0338ff9b17edad6f451128553109c2de
parent75697d6e4ef98ece405210de48e7529d01b619bf
handy.h Cast to unsigned before doing xor

It occurred to me that these macros could have an xor applied to a
signed value if the argument is signed, whereas the xor is expecting
unsigned.
handy.h