shithub: scc

Download patch

ref: 49aed5a4c73098ed769563a1013cea334c7c6209
parent: 9f947ff3f1e8e418d43e9f201d2f293d3187a3a0
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Nov 1 05:31:32 EDT 2021

cc1: Add a FIXME comment

--- a/src/cmd/cc/cc1/lex.c
+++ b/src/cmd/cc/cc1/lex.c
@@ -508,6 +508,7 @@
 		return ' ';
 	}
 	errno = 0;
+	/* FIXME: We don't check that there is an actual number */
 	c = strtoul(input->p, &input->p, base);
 	if (errno || c > 255)
 		warn("character constant out of range");