You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
715 B

  1. Description: Fix FTBFS with GCC 6
  2. Author: Michael Schwendt <mschwendt@fedoraproject.org>
  3. Origin: vendor, https://github.com/mpruett/audiofile/pull/27
  4. Bug-Debian: https://bugs.debian.org/812055
  5. ---
  6. This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  7. --- a/libaudiofile/modules/SimpleModule.h
  8. +++ b/libaudiofile/modules/SimpleModule.h
  9. @@ -123,7 +123,7 @@ struct signConverter
  10. typedef typename IntTypes<Format>::UnsignedType UnsignedType;
  11. static const int kScaleBits = (Format + 1) * CHAR_BIT - 1;
  12. - static const int kMinSignedValue = -1 << kScaleBits;
  13. + static const int kMinSignedValue = 0-(1U<<kScaleBits);
  14. struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType>
  15. {