commit 0e2c0cd93633e29ce5c9e54aa36666299c934c5d
parent 33ccfecf295bb8a0d44e3622e43242d30376e951
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 23 Aug 2012 22:34:21 +0200
Fixed bug in lexical analysis of operators
Instead of returning the value of the token, we were returning the value of
the temporal variable used for reading, so the token returned was always
incorrect. Fixed to return the correct value.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lex.c b/lex.c
@@ -112,7 +112,7 @@ rel_shift(unsigned char op)
op = tp[1];
}
ungetc(c, yyin);
- return c;
+ return op;
}
static unsigned char