summaryrefslogtreecommitdiff
path: root/audio/libaudiofile/files/patch-test_FloatToInt.cpp
blob: 887337422410e67049f6db8c27dd0b2dc6350e4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- test/FloatToInt.cpp.orig	2013-02-11 17:23:26 UTC
+++ test/FloatToInt.cpp
@@ -115,7 +115,7 @@ TEST_F(FloatToIntTest, Int16)
 		EXPECT_EQ(readData[i], expectedData[i]);
 }
 
-static const int32_t kMinInt24 = -1<<23;
+static const int32_t kMinInt24 = ~0u<<23;
 static const int32_t kMaxInt24 = (1<<23) - 1;
 
 TEST_F(FloatToIntTest, Int24)