bugfix in the C parser

This commit is contained in:
kr.angelov
2012-09-06 14:52:19 +00:00
parent 1d8fb27656
commit cd3cca4aa2
3 changed files with 8 additions and 5 deletions

View File

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