Commit 456a8ff7 authored by David Gobbi's avatar David Gobbi

Fix "conversion from size_t to int" warning.

Change-Id: I7f5a411eeafe90f535ff3555ad3d08a8f213a405
parent fced8141
......@@ -63,11 +63,11 @@ Run bison like this:
Modify vtkParse.tab.c:
- convert TABs to spaces (eight per tab)
- remove spaces from ends of lines, s/ *$//g
- replace all instances of "static inline" with "static".
- replace all instances of "static inline" with "static"
- replace "#if ! defined lint || defined __GNUC__" with "#if 1"
- remove YY_ATTRIBUTE_UNUSED from yyfillin, yyfill, and yynormal
- remove the "break;" after return "return yyreportAmbiguity"
- replace "(1-yyrhslen)" with "(1-(int)yyrhslen)"
*/
/*
......@@ -5905,7 +5905,7 @@ yyuserAction (yyRuleNum yyn, size_t yyrhslen, yyGLRStackItem* yyvsp,
if (yyrhslen == 0)
*yyvalp = yyval_default;
else
*yyvalp = yyvsp[YYFILL (1-yyrhslen)].yystate.yysemantics.yysval;
*yyvalp = yyvsp[YYFILL (1-(int)yyrhslen)].yystate.yysemantics.yysval;
switch (yyn)
{
case 4:
......
......@@ -18,17 +18,17 @@
This file must be translated to C and modified to build everywhere.
Run bison like this:
Run bison like this (use bison 3.0.2 or later)
bison --no-lines -b vtkParse vtkParse.y
Modify vtkParse.tab.c:
- convert TABs to spaces (eight per tab)
- remove spaces from ends of lines, s/ *$//g
- replace all instances of "static inline" with "static".
- replace all instances of "static inline" with "static"
- replace "#if ! defined lint || defined __GNUC__" with "#if 1"
- remove YY_ATTRIBUTE_UNUSED from yyfillin, yyfill, and yynormal
- remove the "break;" after return "return yyreportAmbiguity"
- remove the "break;" after "return yyreportAmbiguity"
- replace "(1-yyrhslen)" with "(1-(int)yyrhslen)"
*/
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment