pgf_category_prob should return INFINITY for non-existant categories

This commit is contained in:
krangelov
2021-09-27 14:11:52 +02:00
parent 455fd07e12
commit 38de1bf924

View File

@@ -361,7 +361,7 @@ prob_t pgf_category_prob(PgfDB *db, PgfRevision revision,
ref<PgfAbsCat> abscat =
namespace_lookup(pgf->abstract.cats, catname);
if (abscat == 0) {
return 0;
return INFINITY;
}
return abscat->prob;