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