shithub: scc

Download patch

ref: f9b9be337e76a5a4c16d48639e4a3379d9fdd639
parent: 1814a219b69466faf91e429a2fa30671d4e9a26b
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Jul 22 14:28:28 EDT 2015

Fix small typos (pancake thanks again!)

--- a/cc1/code.c
+++ b/cc1/code.c
@@ -206,7 +206,7 @@
 		break;
 	default:
 		/* TODO: Handle other kind of constants */
-		abort;
+		abort();
 	}
 }
 
--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -457,7 +457,7 @@
 {
 	char c;
 
-	if (c = *input->p != '.')
+	if ((c = *input->p) != '.')
 		return '.';
 	if ((c = *++input->p) != '.')
 		error("incorrect token '..'");