From 763fb502c1d94c33e4bd1034886cfd3522e44eff Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 17 Mar 2017 03:59:19 +0100 Subject: libaudiofile: fix gcc6 compile issue --- .../patches/patch-libaudiofile_modules_SimpleModule_h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/libaudiofile/patches/patch-libaudiofile_modules_SimpleModule_h diff --git a/package/libaudiofile/patches/patch-libaudiofile_modules_SimpleModule_h b/package/libaudiofile/patches/patch-libaudiofile_modules_SimpleModule_h new file mode 100644 index 000000000..2f7639f2f --- /dev/null +++ b/package/libaudiofile/patches/patch-libaudiofile_modules_SimpleModule_h @@ -0,0 +1,11 @@ +--- audiofile-0.3.6.orig/libaudiofile/modules/SimpleModule.h 2013-03-06 06:30:03.000000000 +0100 ++++ audiofile-0.3.6/libaudiofile/modules/SimpleModule.h 2017-03-12 21:13:26.273893853 +0100 +@@ -123,7 +123,7 @@ struct signConverter + typedef typename IntTypes::UnsignedType UnsignedType; + + static const int kScaleBits = (Format + 1) * CHAR_BIT - 1; +- static const int kMinSignedValue = -1 << kScaleBits; ++ static const int kMinSignedValue = static_cast(static_cast(-1) << kScaleBits);; + + struct signedToUnsigned : public std::unary_function + { -- cgit v1.2.3