fix int->size_t types

This commit is contained in:
Krasimir Angelov
2023-01-26 21:53:59 +01:00
parent 213de48eb1
commit bdb9a20f7e
2 changed files with 4 additions and 4 deletions

View File

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

View File

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