shithub: pdffs

Download patch

ref: ff61dc11d08ab57aa1a4761a4ffbe46ec9d6fd6b
parent: 0614e3e0afb7f1d7997b16679c9f58e868a168cf
author: Noam Preil <noam@pixelhero.dev>
date: Thu Apr 7 10:40:47 EDT 2022

parse: numbers can begin with '.'

--- a/object.c
+++ b/object.c
@@ -142,7 +142,7 @@
 		return o;
 
 	default:
-		if(!isdigit(c) && c != '-'){
+		if(!isdigit(c) && c != '-' && c != '.'){
 			Sungetc(s);
 			werrstr("unexpected char '%c' at %#x+%#x (%d left)", c, Sobjoffset(s), Soffset(s), Ssize(s));
 			goto err;