aboutsummaryrefslogtreecommitdiff
path: root/contrib/byacc/skeleton.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/byacc/skeleton.c')
-rw-r--r--contrib/byacc/skeleton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/byacc/skeleton.c b/contrib/byacc/skeleton.c
index 48ae6949aa94..329d4f7a0f7b 100644
--- a/contrib/byacc/skeleton.c
+++ b/contrib/byacc/skeleton.c
@@ -1,4 +1,4 @@
-/* $Id: skeleton.c,v 1.31 2011/09/07 09:37:59 tom Exp $ */
+/* $Id: skeleton.c,v 1.32 2013/03/04 23:19:39 tom Exp $ */
#include "defs.h"
@@ -152,7 +152,7 @@ const char *const body_1[] =
" 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;",