summaryrefslogtreecommitdiff
path: root/test/mtdev-matching.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@bitmath.se>2021-12-07 21:13:36 +0100
committerHenrik Rydberg <rydberg@bitmath.se>2021-12-07 21:13:54 +0100
commit2ed588eccf83728452ce0fc30770e637a7c1374f (patch)
treec713aaef27db57422f2a2d38b2abfe10072ef284 /test/mtdev-matching.c
parent25d541d2b0b526eba58fee99ceac202acca6d4a2 (diff)
Fix test warnings
The unit tests were using stack-allocated memory smaller than the maximum matrix size, causing compiler warnings. Fixed with this patch. Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
Diffstat (limited to 'test/mtdev-matching.c')
-rw-r--r--test/mtdev-matching.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mtdev-matching.c b/test/mtdev-matching.c
index 0f3f6ea..9dff0f3 100644
--- a/test/mtdev-matching.c
+++ b/test/mtdev-matching.c
@@ -36,7 +36,7 @@ static const int n2 = 4;
36 36
37static void test1() 37static void test1()
38{ 38{
39 int A[] = { 39 int A[DIM2_FINGER] = {
40 1013, 40 1013,
41 3030660, 41 3030660,
42 3559354, 42 3559354,
@@ -62,7 +62,7 @@ static void test1()
62 62
63static void test2() 63static void test2()
64{ 64{
65 int A[] = { 65 int A[DIM2_FINGER] = {
66 0, 66 0,
67 4534330, 67 4534330,
68 22653552, 68 22653552,