scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 986532bfe53fc9b4f4bce07d94039cbebffcdb61
parent 2498915ac3402a2fc4cd4557aa3e1ea3bf24858d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 13 Aug 2015 18:13:53 +0200

Fix escape()

Escape() was doing a double increment, discarding the next
character in the output.

Diffstat:
Mcc1/lex.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cc1/lex.c b/cc1/lex.c @@ -291,8 +291,7 @@ escape(void) { int c, base; - ++input->p; - switch (*input->p++) { + switch (*++input->p) { case '\\': return '\\'; case 'a': return '\a'; case 'f': return '\f';