From 0f6aa7eaab86d9f05f3e7ce3b42e94139d40964c Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 6 Sep 2015 13:10:48 +0000 Subject: [PATCH] fix more int vs. size_t mismatches --- lex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lex.c b/lex.c index 9797014..ae204ff 100644 --- a/lex.c +++ b/lex.c @@ -23,7 +23,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.207 2015/09/05 20:20:46 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.208 2015/09/06 13:10:48 tg Exp $"); /* * states while lexing word @@ -61,7 +61,7 @@ typedef struct lex_state { /* point to the next state block */ struct lex_state *base; /* marks start of state output in output string */ - int start; + size_t start; /* SBQUOTE: true if in double quotes: "`...`" */ /* SEQUOTE: got NUL, ignore rest of string */ bool abool; @@ -1150,7 +1150,7 @@ readhere(struct ioword *iop) const char *eof, *eofp; XString xs; char *xp; - int xpos; + size_t xpos; if (iop->ioflag & IOHERESTR) { /* process the here string */