mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
* data/lalr1.cc: When displaying a line number, be sure to make it
an int.
This commit is contained in:
@@ -429,8 +429,11 @@ yy::]b4_parser_class_name[::parse ()
|
||||
#if YYDEBUG
|
||||
if (debug_)
|
||||
{
|
||||
// Short files will use "unsigned char" for line numbers,
|
||||
// in which case they will be output as character litterals
|
||||
// by "<<".
|
||||
YYCDEBUG << "Reducing via rule " << n_ - 1
|
||||
<< " (line " << rline_[n_] << "), ";
|
||||
<< " (line " << static_cast <unsigned> (rline_[n_]) << "), ";
|
||||
for (]b4_int_type_for([b4_prhs])[ i = prhs_[n_];
|
||||
0 <= rhs_[i]; ++i)
|
||||
YYCDEBUG << name_[rhs_[i]] << ' ';
|
||||
|
||||
Reference in New Issue
Block a user