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/mathops.h | |
parent | 9b092dd388a98f8ceb8ec703fe2b757e88e96ec0 (diff) | |
download | opus-ef203135b49eb37327fb6884c272108fef485e0d.tar.gz |
Adding ENABLE_HARDENING
Enables "safes" assertions even with ENABLE_ASSERTIONS isn't set
Diffstat (limited to 'celt/mathops.h')
-rw-r--r-- | celt/mathops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/mathops.h b/celt/mathops.h index 5324c18a..5e86ff0d 100644 --- a/celt/mathops.h +++ b/celt/mathops.h @@ -179,7 +179,7 @@ static OPUS_INLINE float celt_exp2(float x) /** Integer log in base2. Undefined for zero and negative numbers */ static OPUS_INLINE opus_int16 celt_ilog2(opus_int32 x) { - celt_assert2(x>0, "celt_ilog2() only defined for strictly positive numbers"); + celt_sig_assert(x>0); return EC_ILOG(x)-1; } #endif |