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/entcode.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/entcode.h')
-rw-r--r-- | celt/entcode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/celt/entcode.h b/celt/entcode.h index 13d6c84e..3763e3f2 100644 --- a/celt/entcode.h +++ b/celt/entcode.h @@ -122,7 +122,7 @@ opus_uint32 ec_tell_frac(ec_ctx *_this); /* Tested exhaustively for all n and for 1<=d<=256 */ static OPUS_INLINE opus_uint32 celt_udiv(opus_uint32 n, opus_uint32 d) { - celt_assert(d>0); + celt_sig_assert(d>0); #ifdef USE_SMALL_DIV_TABLE if (d>256) return n/d; @@ -138,7 +138,7 @@ static OPUS_INLINE opus_uint32 celt_udiv(opus_uint32 n, opus_uint32 d) { } static OPUS_INLINE opus_int32 celt_sudiv(opus_int32 n, opus_int32 d) { - celt_assert(d>0); + celt_sig_assert(d>0); #ifdef USE_SMALL_DIV_TABLE if (n<0) return -(opus_int32)celt_udiv(-n, d); |