Skip to content
Snippets Groups Projects
Verified Commit 24398751 authored by Mark Harris's avatar Mark Harris
Browse files

Silence Clang 13+ null-pointer-subtraction warning

parent 08088411
No related branches found
Tags v1.3
No related merge requests found
......@@ -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};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment