aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-quiltimport.txt
diff options
context:
space:
mode:
authorBen Walton <bdwalton@gmail.com>2014-05-30 16:22:40 +0100
committerJunio C Hamano <gitster@pobox.com>2014-05-30 11:48:28 -0700
commit9c65ee15ee11c9b9d2fc9d7306fb1e238b35d0c1 (patch)
tree28e142253e0dfa9f0541828ca08a2bc59eee73f9 /Documentation/git-quiltimport.txt
parent839fa9c500c7771d15831e2bcf77697cd70620f9 (diff)
downloadgit-9c65ee15ee11c9b9d2fc9d7306fb1e238b35d0c1.tar.gz
git-9c65ee15ee11c9b9d2fc9d7306fb1e238b35d0c1.tar.xz
compat/bswap.h: fix endianness detection
The changes to make detection of endianness more portable had a bug that breaks on (at least) Solaris x86. The bug appears to be a simple copy/paste typo. It checks for _BIG_ENDIAN and not _LITTLE_ENDIAN for both the case where we would decide the system is big endian and little endian. Instead, the second test should be for _LITTLE_ENDIAN and not _BIG_ENDIAN. Two fixes were possible: 1. Change the negation order of the conditions in the second test. 2. Reverse the order of the conditions in the second test. Use the second option so that the condition we expect is always a positive check. Signed-off-by: Ben Walton <bdwalton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-quiltimport.txt')
0 files changed, 0 insertions, 0 deletions