summaryrefslogtreecommitdiff
path: root/test/calc2.tab.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-05-30 13:10:38 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-05-30 13:10:38 +0000
commitc943539b27d565aaf6ea93b3095b621d2fe7d8e4 (patch)
tree31f84f7545a6919c5fdeb6092024200e9a1e801c /test/calc2.tab.c
parent15d0187d622e8304a13d60eb9a01f6ed63bbb9dc (diff)
Notes
Diffstat (limited to 'test/calc2.tab.c')
-rw-r--r--test/calc2.tab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/calc2.tab.c b/test/calc2.tab.c
index 1eb9548a6972..4e988e72b983 100644
--- a/test/calc2.tab.c
+++ b/test/calc2.tab.c
@@ -376,7 +376,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;