mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-25 08:43:17 -06:00
fix of by one error
This commit is contained in:
1 parent
7d96554d49
commit
49a3eaaa39
1 file changed
+1
-1
@@ -82,7 +82,7 @@ PgfType PgfTypechecker::marshall_type(Type *ty, PgfUnmarshaller *u)
|
||||
for (;;) {
|
||||
Pi *pi = ty->is_pi();
|
||||
if (pi) {
|
||||
hypos = (PgfTypeHypo *) realloc(hypos, n_hypos*sizeof(PgfTypeHypo));
|
||||
hypos = (PgfTypeHypo *) realloc(hypos, (n_hypos+1)*sizeof(PgfTypeHypo));
|
||||
PgfTypeHypo *hypo = &hypos[n_hypos++];
|
||||
hypo->bind_type = pi->bind_type;
|
||||
hypo->cid = &pi->var;
|
||||
|
||||
Reference in new issue
Block a user