mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-18 16:26:00 -06:00
fix of by one error
This commit is contained in:
@@ -82,7 +82,7 @@ PgfType PgfTypechecker::marshall_type(Type *ty, PgfUnmarshaller *u)
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
Pi *pi = ty->is_pi();
|
Pi *pi = ty->is_pi();
|
||||||
if (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++];
|
PgfTypeHypo *hypo = &hypos[n_hypos++];
|
||||||
hypo->bind_type = pi->bind_type;
|
hypo->bind_type = pi->bind_type;
|
||||||
hypo->cid = &pi->var;
|
hypo->cid = &pi->var;
|
||||||
|
|||||||
Reference in New Issue
Block a user