Re: [hackers] [patch][scc] fix parsing end of comment

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Thu, 16 Jul 2015 00:19:45 +0100

On Wed, Jul 15, 2015 at 11:06:07PM +0200, Hiltjo Posthuma wrote:
> diff --git a/cc1/lex.c b/cc1/lex.c
> index c35e401..111c6f8 100644
> --- a/cc1/lex.c
> +++ b/cc1/lex.c
> _AT_@ -184,8 +184,8 @@ comment(char type)
> {
> if (type == '*') {
> while (!eof) {
> - while (readchar() != '*' && !eof)
> - /* nothing */
> + while (readchar() != '*' && !eof)
> + /* nothing */;
> if (readchar() == '/')
> break;
> }

I would have put the semicolon on the same line as the while.
Received on Thu Jul 16 2015 - 01:19:45 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 16 2015 - 01:24:10 CEST