ref: 36d8df36bca374c3c875fd30a69db60f9398de9a
parent: a5b425e6cfe4e58dc32f1d126af43416e76ee3c4
author: Quentin Rameau <[email protected]>
date: Thu May 26 12:56:53 EDT 2016
[cc1] Adjust how errors are counted Increment the error number before checking it, this way we actually stop at MAXERRNUM, not MAXERRNUM + 1.
--- a/cc1/error.c
+++ b/cc1/error.c
@@ -29,7 +29,7 @@
fclose(stdout);
}
failure = 1;
- if (nerrors++ == MAXERRNUM) {
+ if (++nerrors == MAXERRNUM) {
fputs("too many errors\n", stderr);
exit(1);
}