diff options
author | bde <bde@FreeBSD.org> | 1997-03-22 01:48:17 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-03-22 01:48:17 +0000 |
commit | d8c04b9e65f2099cdf0b93b956dab18f7c4ae6eb (patch) | |
tree | 646ae2a43145f38f9c7cbdead65fb36cfae36d36 /usr.bin | |
parent | e2d1047d6fdd56b8561ca5ff0da8cfc2d57461dd (diff) | |
download | FreeBSD-src-d8c04b9e65f2099cdf0b93b956dab18f7c4ae6eb.zip FreeBSD-src-d8c04b9e65f2099cdf0b93b956dab18f7c4ae6eb.tar.gz |
Don't generate invalid C++ code (for implicit conversion from `void *' in
assignment).
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/yacc/skeleton.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index cd62062..4943ccb 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;", |