char on ARM is unsigned by default

This commit is contained in:
Michael Schwendt 2016-02-04 10:40:54 +01:00
parent a4d2feea0b
commit b441c769b5
1 changed files with 24 additions and 5 deletions

View File

@ -1,7 +1,12 @@
diff -Nurb --strip-trailing-cr audiofile-0.3.6-orig/test/NeXT.cpp audiofile-0.3.6/test/NeXT.cpp
diff -Nur audiofile-0.3.6-orig/test/NeXT.cpp audiofile-0.3.6/test/NeXT.cpp
--- audiofile-0.3.6-orig/test/NeXT.cpp 2013-02-11 18:23:26.000000000 +0100
+++ audiofile-0.3.6/test/NeXT.cpp 2016-02-03 21:49:10.867094322 +0100
@@ -41,9 +41,9 @@
+++ audiofile-0.3.6/test/NeXT.cpp 2016-02-04 10:37:32.457140823 +0100
@@ -37,13 +37,13 @@
#include "TestUtilities.h"
-const char kDataUnspecifiedLength[] =
+const signed char kDataUnspecifiedLength[] =
{
'.', 's', 'n', 'd',
0, 0, 0, 24, // offset of 24 bytes
@ -13,7 +18,14 @@ diff -Nurb --strip-trailing-cr audiofile-0.3.6-orig/test/NeXT.cpp audiofile-0.3.
0, 0, 0, 1, // 1 channel
0, 1,
0, 1,
@@ -63,7 +63,7 @@
@@ -57,13 +57,13 @@
0, 55
};
-const char kDataTruncated[] =
+const signed char kDataTruncated[] =
{
'.', 's', 'n', 'd',
0, 0, 0, 24, // offset of 24 bytes
0, 0, 0, 20, // length of 20 bytes
0, 0, 0, 3, // 16-bit linear
@ -22,7 +34,14 @@ diff -Nurb --strip-trailing-cr audiofile-0.3.6-orig/test/NeXT.cpp audiofile-0.3.
0, 0, 0, 1, // 1 channel
0, 1,
0, 1,
@@ -158,7 +158,7 @@
@@ -152,13 +152,13 @@
ASSERT_EQ(::unlink(testFileName.c_str()), 0);
}
-const char kDataZeroChannels[] =
+const signed char kDataZeroChannels[] =
{
'.', 's', 'n', 'd',
0, 0, 0, 24, // offset of 24 bytes
0, 0, 0, 2, // 2 bytes
0, 0, 0, 3, // 16-bit linear