From ebdeba46d38ed2aa9fe8025f28f69f67045264ae Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 22 Apr 2025 14:06:44 +0200 Subject: Removed erroneous condition --- modules/codec-json/c++/json.tmpl.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp index 039f066..0ff2a38 100644 --- a/modules/codec-json/c++/json.tmpl.hpp +++ b/modules/codec-json/c++/json.tmpl.hpp @@ -525,9 +525,11 @@ struct json_decode, ToDecode> { * Hacky setup for float check */ if(do_loop && leading_zero){ + /* Wrong because this falls into a state where ',' is an error. if(buff.read(offset) != '.'){ return make_error("Leading zero, but no '.' afterwards"); } + */ } while(do_loop){ -- cgit v1.2.3