parser.c (cp_lexer_start_debugging): Avoid arithmetic operations on boolean variables.

* parser.c (cp_lexer_start_debugging): Avoid arithmetic operations
	on boolean variables.
	(cp_lexer_stop_debugging): Likewise.

From-SVN: r94731
This commit is contained in:
Mark Mitchell 2005-02-08 04:11:04 +00:00 committed by Mark Mitchell
parent f8eacd975b
commit 81122c446d
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-02-07 Mark Mitchell <mark@codesourcery.com>
* parser.c (cp_lexer_start_debugging): Avoid arithmetic operations
on boolean variables.
(cp_lexer_stop_debugging): Likewise.
2005-02-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/17401

View File

@ -706,7 +706,7 @@ cp_lexer_print_token (FILE * stream, cp_token *token)
static void
cp_lexer_start_debugging (cp_lexer* lexer)
{
++lexer->debugging_p;
lexer->debugging_p = true;
}
/* Stop emitting debugging information. */
@ -714,7 +714,7 @@ cp_lexer_start_debugging (cp_lexer* lexer)
static void
cp_lexer_stop_debugging (cp_lexer* lexer)
{
--lexer->debugging_p;
lexer->debugging_p = false;
}
#endif /* ENABLE_CHECKING */