shithub: libmujs

Download patch

ref: 0a3fc1260101b79de8f088e86fe78bfb553d0290
parent: 4c53c271f1056c933dc40d9799c4443a2285610d
author: Tor Andersson <[email protected]>
date: Wed Jun 21 09:47:09 EDT 2017

Fix typo in js_strtod that affects parsing exponents.

--- a/jsdtoa.c
+++ b/jsdtoa.c
@@ -690,7 +690,7 @@
 			}
 			expSign = FALSE;
 		}
-		while ((*p >= 0) && (*p <= '9')) {
+		while ((*p >= '0') && (*p <= '9')) {
 			exp = exp * 10 + (*p - '0');
 			p += 1;
 		}