Blame SOURCES/audiofile-0.3.6-left-shift-neg.patch

a0a130
diff -Nurb --strip-trailing-cr audiofile-0.3.6-orig/libaudiofile/modules/SimpleModule.h audiofile-0.3.6/libaudiofile/modules/SimpleModule.h
a0a130
--- audiofile-0.3.6-orig/libaudiofile/modules/SimpleModule.h	2013-03-06 06:30:03.000000000 +0100
a0a130
+++ audiofile-0.3.6/libaudiofile/modules/SimpleModule.h	2016-02-03 21:19:43.065454454 +0100
a0a130
@@ -123,7 +123,7 @@
a0a130
 	typedef typename IntTypes<Format>::UnsignedType UnsignedType;
a0a130
 
a0a130
 	static const int kScaleBits = (Format + 1) * CHAR_BIT - 1;
a0a130
-	static const int kMinSignedValue = -1 << kScaleBits;
a0a130
+	static const int kMinSignedValue = 0-(1U<
a0a130
 
a0a130
 	struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType>
a0a130
 	{
a0a130
diff -Nurb --strip-trailing-cr audiofile-0.3.6-orig/test/FloatToInt.cpp audiofile-0.3.6/test/FloatToInt.cpp
a0a130
--- audiofile-0.3.6-orig/test/FloatToInt.cpp	2013-02-11 18:23:26.000000000 +0100
a0a130
+++ audiofile-0.3.6/test/FloatToInt.cpp	2016-02-03 21:21:14.714510229 +0100
a0a130
@@ -115,7 +115,7 @@
a0a130
 		EXPECT_EQ(readData[i], expectedData[i]);
a0a130
 }
a0a130
 
a0a130
-static const int32_t kMinInt24 = -1<<23;
a0a130
+static const int32_t kMinInt24 = 0-(1U<<23);
a0a130
 static const int32_t kMaxInt24 = (1<<23) - 1;
a0a130
 
a0a130
 TEST_F(FloatToIntTest, Int24)
a0a130
diff -Nurb --strip-trailing-cr audiofile-0.3.6-orig/test/IntToFloat.cpp audiofile-0.3.6/test/IntToFloat.cpp
a0a130
--- audiofile-0.3.6-orig/test/IntToFloat.cpp	2013-02-11 18:23:26.000000000 +0100
a0a130
+++ audiofile-0.3.6/test/IntToFloat.cpp	2016-02-03 21:20:57.380445355 +0100
a0a130
@@ -117,7 +117,7 @@
a0a130
 		EXPECT_EQ(readData[i], expectedData[i]);
a0a130
 }
a0a130
 
a0a130
-static const int32_t kMinInt24 = -1<<23;
a0a130
+static const int32_t kMinInt24 = 0-(1U<<23);
a0a130
 static const int32_t kMaxInt24 = (1<<23) - 1;
a0a130
 
a0a130
 TEST_F(IntToFloatTest, Int24)
a0a130
diff -Nurb --strip-trailing-cr audiofile-0.3.6-orig/test/Sign.cpp audiofile-0.3.6/test/Sign.cpp
a0a130
--- audiofile-0.3.6-orig/test/Sign.cpp	2013-02-11 18:23:26.000000000 +0100
a0a130
+++ audiofile-0.3.6/test/Sign.cpp	2016-02-03 21:20:38.742450826 +0100
a0a130
@@ -116,7 +116,7 @@
a0a130
 		EXPECT_EQ(readData[i], expectedData[i]);
a0a130
 }
a0a130
 
a0a130
-static const int32_t kMinInt24 = -1<<23;
a0a130
+static const int32_t kMinInt24 = 0-(1U<<23);
a0a130
 static const int32_t kMaxInt24 = (1<<23) - 1;
a0a130
 static const uint32_t kMaxUInt24 = (1<<24) - 1;
a0a130