commit ede7ba5d7698410287308633d191039d7e795092
Author:     Hiltjo Posthuma <hil...@codemadness.org>
AuthorDate: Wed Jul 15 23:06:07 2015 +0200
Commit:     Roberto E. Vargas Caballero <k...@shike2.com>
CommitDate: Thu Jul 16 07:31:42 2015 +0200

    fix parsing end of comment
    
    Hi,
    
    This patch fixes parsing the end of a comment, there was a missing ;
    
    Kind regards,
    Hiltjo
    
    From 2dc0d42b51973d0e9106a2fd487d9f485178ac34 Mon Sep 17 00:00:00 2001
    From: Hiltjo Posthuma <hil...@codemadness.org>
    Date: Wed, 15 Jul 2015 22:34:42 +0200
    Subject: [PATCH] lex: fix parsing end of comment

diff --git a/cc1/lex.c b/cc1/lex.c
index c35e401..111c6f8 100644
--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -184,8 +184,8 @@ comment(char type)
 {
        if (type == '*') {
                while (!eof) {
-                       while (readchar() !=  '*' && !eof)
-                               /* nothing */
+                       while (readchar() != '*' && !eof)
+                               /* nothing */;
                        if (readchar() == '/')
                                break;
                }

Reply via email to