mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-17 16:59:34 -06:00
fix int->size_t types
This commit is contained in:
@@ -207,9 +207,9 @@ struct PgfUnmarshallerVtbl {
|
||||
PgfLiteral (*lflt)(PgfUnmarshaller *this, double v);
|
||||
PgfLiteral (*lstr)(PgfUnmarshaller *this, PgfText *v);
|
||||
PgfType (*dtyp)(PgfUnmarshaller *this,
|
||||
int n_hypos, PgfTypeHypo *hypos,
|
||||
size_t n_hypos, PgfTypeHypo *hypos,
|
||||
PgfText *cat,
|
||||
int n_exprs, PgfExpr *exprs);
|
||||
size_t n_exprs, PgfExpr *exprs);
|
||||
void (*free_ref)(PgfUnmarshaller *this, object x);
|
||||
};
|
||||
struct PgfUnmarshaller {
|
||||
|
||||
@@ -417,14 +417,14 @@ PgfType PgfPrinter::dtyp(size_t n_hypos, PgfTypeHypo *hypos,
|
||||
|
||||
PgfPrintContext *save_ctxt = ctxt;
|
||||
|
||||
for (int i = 0; i < n_hypos; i++) {
|
||||
for (size_t i = 0; i < n_hypos; i++) {
|
||||
hypo(&hypos[i],1);
|
||||
puts(" -> ");
|
||||
}
|
||||
|
||||
efun(cat);
|
||||
|
||||
for (int i = 0; i < n_exprs; i++) {
|
||||
for (size_t i = 0; i < n_exprs; i++) {
|
||||
puts(" ");
|
||||
prio = 4;
|
||||
m->match_expr(this, exprs[i]);
|
||||
|
||||
Reference in New Issue
Block a user