From 7677efc6a403321e648bdaf28f52f1e1822ee956 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 22 Mar 1997 01:48:17 +0000 Subject: [PATCH] Don't generate invalid C++ code (for implicit conversion from `void *' in assignment). --- usr.bin/yacc/skeleton.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index cd62062cbe25..4943ccb23faf 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: skeleton.c,v 1.11 1997/02/22 19:58:02 peter Exp $ */ #ifndef lint @@ -150,11 +150,11 @@ char *body[] = " else if ((newsize *= 2) > YYMAXDEPTH)", " newsize = YYMAXDEPTH;", " i = yyssp - yyss;", - " if ((newss = realloc(yyss, newsize * sizeof *newss)) == NULL)", + " if ((newss = (short *)realloc(yyss, newsize * sizeof *newss)) == NULL)", " return -1;", " yyss = newss;", " yyssp = newss + i;", - " if ((newvs = realloc(yyvs, newsize * sizeof *newvs)) == NULL)", + " if ((newvs = (YYSTYPE *)realloc(yyvs, newsize * sizeof *newvs)) == NULL)", " return -1;", " yyvs = newvs;", " yyvsp = newvs + i;",