Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-23 00:40:35 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-27 22:13:25 +0300
commitef203135b49eb37327fb6884c272108fef485e0d (patch)
tree512145c932ab2cbb1f1158b986091b9b6ca52bf0 /tests
parent9b092dd388a98f8ceb8ec703fe2b757e88e96ec0 (diff)
Adding ENABLE_HARDENING
Enables "safes" assertions even with ENABLE_ASSERTIONS isn't set
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_projection.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_opus_projection.c b/tests/test_opus_projection.c
index 3068cd38..6679a0e7 100644
--- a/tests/test_opus_projection.c
+++ b/tests/test_opus_projection.c
@@ -39,8 +39,8 @@
#include "test_opus_common.h"
#include "opus_projection.h"
#include "mathops.h"
-#include "../src/mapping_matrix.c"
-#include "mathops.c"
+#include "../src/mapping_matrix.h"
+#include "mathops.h"
#ifdef ENABLE_EXPERIMENTAL_AMBISONICS
@@ -103,9 +103,9 @@ void test_simple_matrix(void)
MappingMatrix *simple_matrix;
/* Allocate input/output buffers. */
- input_val16 = (opus_val16 *)opus_alloc(align(sizeof(opus_val16) * SIMPLE_MATRIX_INPUT_SIZE));
- output_int16 = (opus_int16 *)opus_alloc(align(sizeof(opus_int16) * SIMPLE_MATRIX_OUTPUT_SIZE));
- output_val16 = (opus_val16 *)opus_alloc(align(sizeof(opus_val16) * SIMPLE_MATRIX_OUTPUT_SIZE));
+ input_val16 = (opus_val16 *)opus_alloc(sizeof(opus_val16) * SIMPLE_MATRIX_INPUT_SIZE);
+ output_int16 = (opus_int16 *)opus_alloc(sizeof(opus_int16) * SIMPLE_MATRIX_OUTPUT_SIZE);
+ output_val16 = (opus_val16 *)opus_alloc(sizeof(opus_val16) * SIMPLE_MATRIX_OUTPUT_SIZE);
/* Initialize matrix */
simple_matrix_size = mapping_matrix_get_size(simple_matrix_params.rows,