shithub: pdffs

Download patch

ref: 93f2d56c54714742c8494e154ddf89daaccb4211
parent: 33ddc6670424155fcdb359ddc6dc8b39e63f1c82
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Sep 1 17:00:52 EDT 2020

number can be negative

--- a/object.c
+++ b/object.c
@@ -108,7 +108,7 @@
 		return o;
 
 	default:
-		if(!isdigit(c)){
+		if(!isdigit(c) && c != '-'){
 unexpected:
 			Sungetc(s);
 			werrstr("unexpected char '%c'", c);