1
0
forked from GitHub/gf-core

fix warnings detected by MSVC

This commit is contained in:
Krasimir Angelov
2023-05-11 05:52:39 +02:00
parent a514500bba
commit 98165bd8b5
6 changed files with 7 additions and 7 deletions

View File

@@ -79,7 +79,7 @@ prob_t PgfReader::read_prob(PgfText *name)
if (probs_callback != NULL) {
d = probs_callback->fn(probs_callback, name);
}
return - log(d);
return - logf(d);
}
uint64_t PgfReader::read_uint()
@@ -458,7 +458,7 @@ void PgfReader::read_abstract(ref<PgfAbstr> abstract)
for (size_t i = 0; i < itor.cats->len; i++) {
PgfAbsCatCounts *counts = &itor.cats->data[i];
counts->prob = - log((1-counts->probs_sum) / counts->n_nan_probs);
counts->prob = - logf((1-counts->probs_sum) / counts->n_nan_probs);
}
itor.fn = pad_probs;