summary refs log tree commit diff
path: root/lisc/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lisc/parse.c')
-rw-r--r--lisc/parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisc/parse.c b/lisc/parse.c
index e858365..ab5a643 100644
--- a/lisc/parse.c
+++ b/lisc/parse.c
@@ -208,6 +208,7 @@ lex()
 			tokval.num += c - '0';
 		}
 		ungetc(c, inf);
+		tokval.num *= sgn;
 		return TInt;
 	}
 	if (c == '"') {