1From a74c1e9c583375b9e55c29a36442485089e4b7f9 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
3Date: Fri, 16 Dec 2016 12:42:06 +0100
4Subject: [PATCH 2/3] fix build on gcc6
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Stolen from [1]
10
11[1] http://pkgs.fedoraproject.org/cgit/rpms/audiofile.git/tree/audiofile-0.3.6-narrowing.patch
12
13Upstrem-Status: Pending
14
15Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
16---
17Upstream-Status: Pending
18
19 test/NeXT.cpp | 14 +++++++-------
20 1 file changed, 7 insertions(+), 7 deletions(-)
21
22diff --git a/test/NeXT.cpp b/test/NeXT.cpp
23index 7e39850..a37cea1 100644
24--- a/test/NeXT.cpp
25+++ b/test/NeXT.cpp
26@@ -37,13 +37,13 @@
27
28 #include "TestUtilities.h"
29
30-const char kDataUnspecifiedLength[] =
31+const signed char kDataUnspecifiedLength[] =
32 {
33 	'.', 's', 'n', 'd',
34 	0, 0, 0, 24, // offset of 24 bytes
35-	0xff, 0xff, 0xff, 0xff, // unspecified length
36+	-1, -1, -1, -1, // unspecified length
37 	0, 0, 0, 3, // 16-bit linear
38-	0, 0, 172, 68, // 44100 Hz
39+	0, 0, -84, 68, // 44100 Hz (0xAC44)
40 	0, 0, 0, 1, // 1 channel
41 	0, 1,
42 	0, 1,
43@@ -57,13 +57,13 @@ const char kDataUnspecifiedLength[] =
44 	0, 55
45 };
46
47-const char kDataTruncated[] =
48+const signed char kDataTruncated[] =
49 {
50 	'.', 's', 'n', 'd',
51 	0, 0, 0, 24, // offset of 24 bytes
52 	0, 0, 0, 20, // length of 20 bytes
53 	0, 0, 0, 3, // 16-bit linear
54-	0, 0, 172, 68, // 44100 Hz
55+	0, 0, -84, 68, // 44100 Hz (0xAC44)
56 	0, 0, 0, 1, // 1 channel
57 	0, 1,
58 	0, 1,
59@@ -152,13 +152,13 @@ TEST(NeXT, Truncated)
60 	ASSERT_EQ(::unlink(testFileName.c_str()), 0);
61 }
62
63-const char kDataZeroChannels[] =
64+const signed char kDataZeroChannels[] =
65 {
66 	'.', 's', 'n', 'd',
67 	0, 0, 0, 24, // offset of 24 bytes
68 	0, 0, 0, 2, // 2 bytes
69 	0, 0, 0, 3, // 16-bit linear
70-	0, 0, 172, 68, // 44100 Hz
71+	0, 0, -84, 68, // 44100 Hz (0xAC44)
72 	0, 0, 0, 0, // 0 channels
73 	0, 1
74 };
75--
762.7.4
77
78