Fix some of C4244 double to float warnings

This commit is contained in:
xnorpx 2023-05-23 17:31:51 -07:00 committed by Jean-Marc Valin
parent 919b7a1f58
commit 879084f6f0
6 changed files with 39 additions and 39 deletions

View file

@ -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));