diff options
Diffstat (limited to 'test/calc1.tab.c')
| -rw-r--r-- | test/calc1.tab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/calc1.tab.c b/test/calc1.tab.c index 65551e8ecbc7d..7db7c3042c1f8 100644 --- a/test/calc1.tab.c +++ b/test/calc1.tab.c @@ -393,7 +393,7 @@ yylex(void) for (; (cp - buf) < BSZ; ++cp, c = getchar()) { - *cp = c; + *cp = (char) c; if (isdigit(c)) continue; if (c == '.') @@ -506,7 +506,7 @@ static int yygrowstack(YYSTACKDATA *data) else if ((newsize *= 2) > YYMAXDEPTH) newsize = YYMAXDEPTH; - i = data->s_mark - data->s_base; + i = (int) (data->s_mark - data->s_base); newss = (short *)realloc(data->s_base, newsize * sizeof(*newss)); if (newss == 0) return -1; |
