aboutsummaryrefslogtreecommitdiff
path: root/contrib/byacc/test/pure_calc.tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/byacc/test/pure_calc.tab.c')
-rw-r--r--contrib/byacc/test/pure_calc.tab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/byacc/test/pure_calc.tab.c b/contrib/byacc/test/pure_calc.tab.c
index eb8c189b5086..acba40412756 100644
--- a/contrib/byacc/test/pure_calc.tab.c
+++ b/contrib/byacc/test/pure_calc.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;