mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 23:43:35 +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
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id: skeleton.c,v 1.11 1997/02/22 19:58:02 peter Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
@ -150,11 +150,11 @@ char *body[] =
|
|||||||
" else if ((newsize *= 2) > YYMAXDEPTH)",
|
" else if ((newsize *= 2) > YYMAXDEPTH)",
|
||||||
" newsize = YYMAXDEPTH;",
|
" newsize = YYMAXDEPTH;",
|
||||||
" i = yyssp - yyss;",
|
" i = yyssp - yyss;",
|
||||||
" if ((newss = realloc(yyss, newsize * sizeof *newss)) == NULL)",
|
" if ((newss = (short *)realloc(yyss, newsize * sizeof *newss)) == NULL)",
|
||||||
" return -1;",
|
" return -1;",
|
||||||
" yyss = newss;",
|
" yyss = newss;",
|
||||||
" yyssp = newss + i;",
|
" yyssp = newss + i;",
|
||||||
" if ((newvs = realloc(yyvs, newsize * sizeof *newvs)) == NULL)",
|
" if ((newvs = (YYSTYPE *)realloc(yyvs, newsize * sizeof *newvs)) == NULL)",
|
||||||
" return -1;",
|
" return -1;",
|
||||||
" yyvs = newvs;",
|
" yyvs = newvs;",
|
||||||
" yyvsp = newvs + i;",
|
" yyvsp = newvs + i;",
|
||||||
|
Loading…
Reference in New Issue
Block a user