mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-02 07:42:50 -06:00
bugfix in the C parser
This commit is contained in:
@@ -648,10 +648,13 @@ typedef struct {
|
||||
static void
|
||||
pgf_compute_meta_probs(GuMapItor* fn, const void* key, void* value, GuExn* err)
|
||||
{
|
||||
(void) (key && err);
|
||||
(void) (err);
|
||||
|
||||
PgfCId name = *((PgfCId*) key);
|
||||
PgfCat* cat = *((PgfCat**) value);
|
||||
|
||||
|
||||
cat->name = name;
|
||||
|
||||
double mass = 0;
|
||||
for (size_t i = 0; i < cat->n_functions; i++) {
|
||||
mass += cat->functions[i].prob;
|
||||
|
||||
Reference in New Issue
Block a user