shithub: scc

Download patch

ref: ede7ba5d7698410287308633d191039d7e795092
parent: 937a1686e98b70e427e12de8b9b635d245d7e05c
author: Hiltjo Posthuma <hiltjo@codemadness.org>
date: Wed Jul 15 19:06:07 EDT 2015

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

--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -184,8 +184,8 @@
 {
 	if (type == '*') {
 		while (!eof) {
-			while (readchar() !=  '*' && !eof)
-				/* nothing */
+			while (readchar() != '*' && !eof)
+				/* nothing */;
 			if (readchar() == '/')
 				break;
 		}