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

---
 cc1/lex.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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;
                }
-- 
2.3.0

Reply via email to