shithub: opusfile

Download patch

ref: 8f00bcbfc1dbf4c2b44ed1ddc18467caaacd604a
parent: 069dc6e880628b8f1626d6a780eb8ccaf101951d
author: Mark Harris <[email protected]>
date: Wed Apr 29 15:11:50 EDT 2020

Silence clang 10 conversion warning

 src/opusfile.c:3242:18: warning: implicit conversion from 'unsigned
       int' to 'float' changes value from 4294967295 to 4294967296
       [-Wimplicit-int-float-conversion]
           r=seed*OP_PRNG_GAIN;
                  ^~~~~~~~~~~~
 src/opusfile.c:3179:29: note: expanded from macro 'OP_PRNG_GAIN'
 # define OP_PRNG_GAIN (1.0F/0xFFFFFFFF)
                            ~^~~~~~~~~~

--- a/src/opusfile.c
+++ b/src/opusfile.c
@@ -3176,7 +3176,7 @@
 
 # define OP_GAIN (32753.0F)
 
-# define OP_PRNG_GAIN (1.0F/0xFFFFFFFF)
+# define OP_PRNG_GAIN (1.0F/(float)0xFFFFFFFF)
 
 /*48 kHz noise shaping filter, sd=2.34.*/