diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-22 17:40:35 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-27 15:13:25 -0400 |
commit | ef203135b49eb37327fb6884c272108fef485e0d (patch) | |
tree | 512145c932ab2cbb1f1158b986091b9b6ca52bf0 /celt/vq.c | |
parent | 9b092dd388a98f8ceb8ec703fe2b757e88e96ec0 (diff) | |
download | libopus-ef203135b49eb37327fb6884c272108fef485e0d.tar.gz |
Adding ENABLE_HARDENING
Enables "safes" assertions even with ENABLE_ASSERTIONS isn't set
Diffstat (limited to 'celt/vq.c')
-rw-r--r-- | celt/vq.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -230,12 +230,12 @@ opus_val16 op_pvq_search_c(celt_norm *X, int *iy, int K, int N, int arch) pulsesLeft -= iy[j]; } while (++j<N); } - celt_assert2(pulsesLeft>=0, "Allocated too many pulses in the quick pass"); + celt_sig_assert(pulsesLeft>=0); /* This should never happen, but just in case it does (e.g. on silence) we fill the first bin with pulses. */ #ifdef FIXED_POINT_DEBUG - celt_assert2(pulsesLeft<=N+3, "Not enough pulses in the quick pass"); + celt_sig_assert(pulsesLeft<=N+3); #endif if (pulsesLeft > N+3) { |