diff options
author | Mark Harris <mark.hsj@gmail.com> | 2022-07-09 22:14:13 -0700 |
---|---|---|
committer | Mark Harris <mark.hsj@gmail.com> | 2022-07-10 16:25:01 -0700 |
commit | 243987518a65218ffe5cf260756cbf66583a9bb4 (patch) | |
tree | a6baeda72a28beb67a7c57448454c7aa7e3e547d | |
parent | 08088411259056f63774befb2d00951fdd5c46ba (diff) | |
download | opus-243987518a65218ffe5cf260756cbf66583a9bb4.tar.gz |
Silence Clang 13+ null-pointer-subtraction warning
-rw-r--r-- | celt/pitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/pitch.c b/celt/pitch.c index 586ca8c3..7998db41 100644 --- a/celt/pitch.c +++ b/celt/pitch.c @@ -258,7 +258,7 @@ celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y, opus_val32 maxcorr=1; #endif celt_assert(max_pitch>0); - celt_sig_assert((((unsigned char *)_x-(unsigned char *)NULL)&3)==0); + celt_sig_assert(((size_t)_x&3)==0); for (i=0;i<max_pitch-3;i+=4) { opus_val32 sum[4]={0,0,0,0}; |