patch-libaudiofile_modules_SimpleModule_h 599 B

1234567891011
  1. --- audiofile-0.3.6.orig/libaudiofile/modules/SimpleModule.h 2013-03-06 06:30:03.000000000 +0100
  2. +++ audiofile-0.3.6/libaudiofile/modules/SimpleModule.h 2017-03-12 21:13:26.273893853 +0100
  3. @@ -123,7 +123,7 @@ struct signConverter
  4. typedef typename IntTypes<Format>::UnsignedType UnsignedType;
  5. static const int kScaleBits = (Format + 1) * CHAR_BIT - 1;
  6. - static const int kMinSignedValue = -1 << kScaleBits;
  7. + static const int kMinSignedValue = static_cast<signed>(static_cast<unsigned>(-1) << kScaleBits);;
  8. struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType>
  9. {