mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 21:52:45 +00:00
Don't generate invalid C++ code (for implicit conversion from `void *' in
assignment).
This commit is contained in:
parent
1d893449f7
commit
7677efc6a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24096
@ -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;",
|
||||
|
Loading…
Reference in New Issue
Block a user