Skip to content

Silence clang 10 conversion warning

Mark Harris requested to merge markh/opusfile:clang10 into master
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)
                           ~^~~~~~~~~~

Merge request reports

Loading