+2003-02-21 Akim Demaille <akim@epita.fr>
+
+ * data/lalr1.cc: Use temporary variables instead of casts to
+ change integer types.
+ Suggested by Paul Eggert.
+
2003-02-21 Akim Demaille <akim@epita.fr>
* doc/bison.texinfo: Use "location" consistently to refer to @n,
// Short files will use "unsigned char" for line numbers,
// in which case they will be output as character litterals
// by "<<".
+ unsigned yylineno = rline_[n_];
YYCDEBUG << "Reducing via rule " << n_ - 1
- << " (line " << static_cast <unsigned> (rline_[n_]) << "), ";
+ << " (line " << yylineno << "), ";
for (]b4_int_type_for([b4_prhs])[ i = prhs_[n_];
0 <= rhs_[i]; ++i)
YYCDEBUG << name_[rhs_[i]] << ' ';
/** \brief (column related) Advance to the COLUMNS next columns. */
inline void columns (int columns = 1)
{
- if (int (initial_column) < columns + int (column))
+ int leftmost = initial_column;
+ int current = column;
+ if (leftmost <= current + columns)
column += columns;
else
column = initial_column;