summaryrefslogtreecommitdiff
path: root/test/calc3.tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/calc3.tab.c')
-rw-r--r--test/calc3.tab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/calc3.tab.c b/test/calc3.tab.c
index 9c38899..eff5a31 100644
--- a/test/calc3.tab.c
+++ b/test/calc3.tab.c
@@ -374,7 +374,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;