opnsense-ports/audio/libaudiofile/files/patch-test_IntToFloat.cpp
Franco Fichtner fc64644bd1 */*: sync with upstream
Taken from: FreeBSD
2024-09-30 14:47:08 +02:00

11 lines
341 B
C++

--- test/IntToFloat.cpp.orig 2013-02-11 17:23:26 UTC
+++ test/IntToFloat.cpp
@@ -117,7 +117,7 @@ TEST_F(IntToFloatTest, 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(IntToFloatTest, Int24)