netpbm-10.66-wordaccess_be_aligned.patch 942 B

123456789101112131415161718192021222324
  1. https://bugs.gentoo.org/547252
  2. ------------------------------------------------------------------------
  3. r2395 | giraffedata | 2015-01-23 13:51:17 -0500 (Fri, 23 Jan 2015) | 1 line
  4. Fix syntax error
  5. build: fix compile failure in wordint_access_be.h with
  6. Bigendian target platforms.
  7. Index: trunk/lib/util/wordaccess_be_aligned.h
  8. ===================================================================
  9. --- trunk/lib/util/wordaccess_be_aligned.h (revision 2394)
  10. +++ trunk/lib/util/wordaccess_be_aligned.h (revision 2395)
  11. @@ -24,7 +24,7 @@ bytesToWordint(wordintBytes bytes) {
  12. static __inline__ void
  13. wordintToBytes(wordintBytes * const bytesP,
  14. wordint const wordInt) {
  15. - uint16_t const hi = ((wordInt >> 48) & 0xFF)
  16. + uint16_t const hi = ((wordInt >> 48) & 0xFF);
  17. uint16_t const mh = ((wordInt >> 32) & 0xFF);
  18. uint16_t const ml = ((wordInt >> 24) & 0xFF);
  19. uint16_t const lo = ((wordInt >> 0) & 0xFF);