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