scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit ede7ba5d7698410287308633d191039d7e795092
parent 937a1686e98b70e427e12de8b9b635d245d7e05c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 15 Jul 2015 23:06:07 +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@codemadness.org>
Date: Wed, 15 Jul 2015 22:34:42 +0200
Subject: [PATCH] lex: fix parsing end of comment

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

diff --git 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; }