From 81122c446d94ea3f12fae0f28d6b436c577633d2 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 8 Feb 2005 04:11:04 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/parser.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 32e664533d5..5cb87420553 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2005-02-07 Mark Mitchell + + * parser.c (cp_lexer_start_debugging): Avoid arithmetic operations + on boolean variables. + (cp_lexer_stop_debugging): Likewise. + 2005-02-03 Giovanni Bajo PR c++/17401 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 82d665ed810..54e330f737a 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -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 */ -- 2.30.2