mirror of
https://github.com/xiph/opus.git
synced 2025-06-01 08:07:41 +00:00
Fix some of C4244 double to float warnings
This commit is contained in:
parent
919b7a1f58
commit
879084f6f0
6 changed files with 39 additions and 39 deletions
|
@ -179,7 +179,7 @@ LPCNET_EXPORT int lpcnet_init(LPCNetState *lpcnet)
|
|||
memset(lpcnet, 0, lpcnet_get_size());
|
||||
lpcnet->last_exc = lin2ulaw(0.f);
|
||||
for (i=0;i<256;i++) {
|
||||
float prob = .025+.95*i/255.;
|
||||
float prob = .025f+.95f*i/255.f;
|
||||
lpcnet->sampling_logit_table[i] = -log((1-prob)/prob);
|
||||
}
|
||||
kiss99_srand(&lpcnet->rng, (const unsigned char *)rng_string, strlen(rng_string));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue