summaryrefslogtreecommitdiff
path: root/silk/sort.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-24 02:16:15 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-27 15:13:27 -0400
commit7e3352ef517379c9ab42a2416b444882ff86aec6 (patch)
tree0d53c0120e5225689563dc4cf7cd1632df6cabbb /silk/sort.c
parent69bcb28d3ddb20231580bd09e44d87a769dabcb7 (diff)
downloadopus-7e3352ef517379c9ab42a2416b444882ff86aec6.tar.gz
Converting some silk_assert()s into hardening celt_assert()s
Only converted the ones that are really sure (not signal-dependent) and that shouldn't add much run-time complexity
Diffstat (limited to 'silk/sort.c')
-rw-r--r--silk/sort.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/silk/sort.c b/silk/sort.c
index 7187c9ef..4fba16f8 100644
--- a/silk/sort.c
+++ b/silk/sort.c
@@ -48,9 +48,9 @@ void silk_insertion_sort_increasing(
opus_int i, j;
/* Safety checks */
- silk_assert( K > 0 );
- silk_assert( L > 0 );
- silk_assert( L >= K );
+ celt_assert( K > 0 );
+ celt_assert( L > 0 );
+ celt_assert( L >= K );
/* Write start indices in index vector */
for( i = 0; i < K; i++ ) {
@@ -96,9 +96,9 @@ void silk_insertion_sort_decreasing_int16(
opus_int value;
/* Safety checks */
- silk_assert( K > 0 );
- silk_assert( L > 0 );
- silk_assert( L >= K );
+ celt_assert( K > 0 );
+ celt_assert( L > 0 );
+ celt_assert( L >= K );
/* Write start indices in index vector */
for( i = 0; i < K; i++ ) {
@@ -141,7 +141,7 @@ void silk_insertion_sort_increasing_all_values_int16(
opus_int i, j;
/* Safety checks */
- silk_assert( L > 0 );
+ celt_assert( L > 0 );
/* Sort vector elements by value, increasing order */
for( i = 1; i < L; i++ ) {