diff --git a/tool/net/ljson.c b/tool/net/ljson.c index c00d6ab94..f1c0de64a 100644 --- a/tool/net/ljson.c +++ b/tool/net/ljson.c @@ -27,7 +27,7 @@ #include "third_party/lua/ltests.h" #include "third_party/lua/lua.h" -#define MAX_JSON_DEPTH 1024 +#define MAX_JSON_DEPTH 128 struct Rc { int t; @@ -99,7 +99,7 @@ static struct Rc Parse(struct lua_State *L, const char *p, const char *e) { break; case '0': // zero or number - if (p < e && *p == '.') { + if (p < e && (*p == '.' || *p == 'e' || *p == 'E')) { goto UseDubble; } lua_pushinteger(L, 0); diff --git a/tool/net/net.mk b/tool/net/net.mk index 7cd230e30..c6288fcc8 100644 --- a/tool/net/net.mk +++ b/tool/net/net.mk @@ -210,9 +210,6 @@ o/$(MODE)/tool/net/demo/virtualbean.html.zip.o: \ -Predbean.justine.lol \ -B -o/$(MODE)/tool/net/ljson.o: \ - -DSTACK_FRAME_UNLIMITED - o/$(MODE)/tool/net/redbean-demo.com.dbg: \ $(TOOL_NET_DEPS) \ o/$(MODE)/tool/net/redbean.o \