mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 11:15:27 -07:00
use prob_t instead of float in a few places
This commit is contained in:
1 parent
377ce1732d
commit
c679b08b38
1 file changed
+2
-2
@@ -925,7 +925,7 @@ pgf_load_meta_child_probs(PgfPGF* pgf, const char* fpath, GuPool* pool)
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
char cat1_s[21];
|
char cat1_s[21];
|
||||||
char cat2_s[21];
|
char cat2_s[21];
|
||||||
float prob;
|
prob_t prob;
|
||||||
|
|
||||||
if (fscanf(fp, "%20s\t%20s\t%f", cat1_s, cat2_s, &prob) < 3)
|
if (fscanf(fp, "%20s\t%20s\t%f", cat1_s, cat2_s, &prob) < 3)
|
||||||
break;
|
break;
|
||||||
@@ -953,7 +953,7 @@ pgf_load_meta_child_probs(PgfPGF* pgf, const char* fpath, GuPool* pool)
|
|||||||
gu_map_type_new(PgfMetaChildMap, pool);
|
gu_map_type_new(PgfMetaChildMap, pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
gu_map_put(abscat1->meta_child_probs, abscat2, float, prob);
|
gu_map_put(abscat1->meta_child_probs, abscat2, prob_t, prob);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user