Message ID | alpine.DEB.2.20.1709051514290.6483@digraph.polyomino.org.uk |
---|---|
State | New |
Headers | show |
Series | Fix pcprofiledump cross-endian condition (bug 22086) [committed] | expand |
diff --git a/debug/pcprofiledump.c b/debug/pcprofiledump.c index a32cdef..6a9641e 100644 --- a/debug/pcprofiledump.c +++ b/debug/pcprofiledump.c @@ -115,7 +115,7 @@ main (int argc, char *argv[]) error (EXIT_FAILURE, errno, _("cannot read header")); /* Check whether we have to swap the byte order. */ - int must_swap = (word & 0xfffffff0) == bswap_32 (0xdeb00000); + int must_swap = (word & 0x0fffffff) == bswap_32 (0xdeb00000); if (must_swap) word = bswap_32 (word);