Commit | Line | Data |
---|---|---|
a8e14943 HG |
1 | Based on (hunks for changelog and Identy.cpp removed) |
2 | From ecbc07f0ed336187cc9a67c3363f89681b8b8f52 Mon Sep 17 00:00:00 2001 | |
3 | From: Michael Pruett <michael@68k.org> | |
4 | Date: Tue, 5 Jul 2016 23:26:16 -0500 | |
5 | Subject: [PATCH] Fix type of test data arrays. | |
6 | ||
7 | ||
8 | ||
9 | ||
10 | --- | |
11 | ChangeLog | 6 ++++++ | |
12 | test/Identify.cpp | 3 ++- | |
13 | test/NeXT.cpp | 7 ++++--- | |
14 | 3 files changed, 12 insertions(+), 4 deletions(-) | |
15 | ||
16 | diff --git a/test/NeXT.cpp b/test/NeXT.cpp | |
17 | index 7e39850..29af877 100644 | |
18 | --- a/test/NeXT.cpp | |
19 | +++ b/test/NeXT.cpp | |
20 | @@ -30,6 +30,7 @@ | |
21 | #include <audiofile.h> | |
22 | #include <fcntl.h> | |
23 | #include <gtest/gtest.h> | |
24 | +#include <stdint.h> | |
25 | #include <sys/stat.h> | |
26 | #include <sys/types.h> | |
27 | #include <unistd.h> | |
28 | @@ -37,7 +38,7 @@ | |
29 | ||
30 | #include "TestUtilities.h" | |
31 | ||
32 | -const char kDataUnspecifiedLength[] = | |
33 | +const uint8_t kDataUnspecifiedLength[] = | |
34 | { | |
35 | '.', 's', 'n', 'd', | |
36 | 0, 0, 0, 24, // offset of 24 bytes | |
37 | @@ -57,7 +58,7 @@ const char kDataUnspecifiedLength[] = | |
38 | 0, 55 | |
39 | }; | |
40 | ||
41 | -const char kDataTruncated[] = | |
42 | +const uint8_t kDataTruncated[] = | |
43 | { | |
44 | '.', 's', 'n', 'd', | |
45 | 0, 0, 0, 24, // offset of 24 bytes | |
46 | @@ -152,7 +153,7 @@ TEST(NeXT, Truncated) | |
47 | ASSERT_EQ(::unlink(testFileName.c_str()), 0); | |
48 | } | |
49 | ||
50 | -const char kDataZeroChannels[] = | |
51 | +const uint8_t kDataZeroChannels[] = | |
52 | { | |
53 | '.', 's', 'n', 'd', | |
54 | 0, 0, 0, 24, // offset of 24 bytes |