shithub: scc

Download patch

ref: 4e4f69b83975a5306469d130e322ab7425c2bfdd
parent: 57cc52be5b9df84c0ffa06b21307577cbc10e32f
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Jan 20 03:13:59 EST 2017

[cc1] Fix /* */ comments parsing

--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -225,7 +225,7 @@
 		peekc = readchar();
 		if (peekc != '*' && peekc != '/')
 			continue;
-		comment((peekc == '/') ? '\n' : '/');
+		comment((peekc == '/') ? '\n' : '*');
 		peekc = 0;
 		c = ' ';
 	}