- Fix the incorrect argument passed to createTemporaryFile() (bsc#1221308): createTemporaryFile-argument-fix.patch - Refresh patch to be applied with -p1, use autosetup macro for cleanup - Put COPYING* to licenses OBS-URL: https://build.opensuse.org/request/show/1157294 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/audiofile?expand=0&rev=47
46 lines
1.2 KiB
Diff
46 lines
1.2 KiB
Diff
---
|
|
libaudiofile/modules/SimpleModule.h | 2 +-
|
|
test/NeXT.cpp | 6 +++---
|
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/libaudiofile/modules/SimpleModule.h
|
|
+++ b/libaudiofile/modules/SimpleModule.h
|
|
@@ -123,7 +123,7 @@ struct signConverter
|
|
typedef typename IntTypes<Format>::UnsignedType UnsignedType;
|
|
|
|
static const int kScaleBits = (Format + 1) * CHAR_BIT - 1;
|
|
- static const int kMinSignedValue = -1 << kScaleBits;
|
|
+ static const int kMinSignedValue = -1U << kScaleBits;
|
|
|
|
struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType>
|
|
{
|
|
--- a/test/NeXT.cpp
|
|
+++ b/test/NeXT.cpp
|
|
@@ -37,7 +37,7 @@
|
|
|
|
#include "TestUtilities.h"
|
|
|
|
-const char kDataUnspecifiedLength[] =
|
|
+const unsigned char kDataUnspecifiedLength[] =
|
|
{
|
|
'.', 's', 'n', 'd',
|
|
0, 0, 0, 24, // offset of 24 bytes
|
|
@@ -57,7 +57,7 @@ const char kDataUnspecifiedLength[] =
|
|
0, 55
|
|
};
|
|
|
|
-const char kDataTruncated[] =
|
|
+const unsigned char kDataTruncated[] =
|
|
{
|
|
'.', 's', 'n', 'd',
|
|
0, 0, 0, 24, // offset of 24 bytes
|
|
@@ -152,7 +152,7 @@ TEST(NeXT, Truncated)
|
|
ASSERT_EQ(::unlink(testFileName.c_str()), 0);
|
|
}
|
|
|
|
-const char kDataZeroChannels[] =
|
|
+const unsigned char kDataZeroChannels[] =
|
|
{
|
|
'.', 's', 'n', 'd',
|
|
0, 0, 0, 24, // offset of 24 bytes
|