[hackers] [scc] fix parsing end of comment || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Thu, 16 Jul 2015 07:33:24 +0200 (CEST)

commit ede7ba5d7698410287308633d191039d7e795092
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Wed Jul 15 23:06:07 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_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 <hiltjo_AT_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
_AT_@ -184,8 +184,8 @@ comment(char type)
 {
         if (type == '*') {
                 while (!eof) {
- while (readchar() != '*' && !eof)
- /* nothing */
+ while (readchar() != '*' && !eof)
+ /* nothing */;
                         if (readchar() == '/')
                                 break;
                 }
Received on Thu Jul 16 2015 - 07:33:24 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 16 2015 - 07:36:12 CEST