diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-09 00:23:16 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-09 00:23:16 +0000 |
commit | bfea0319aa07ad2c921ba29ba216e921d65f2ed1 (patch) | |
tree | 8a61e8b5a1280445c94d1443205cc1d2a5a23736 /lib/jsonParse.ll | |
parent | Fix test-persistence dependencies (diff) | |
download | ilt-bfea0319aa07ad2c921ba29ba216e921d65f2ed1.tar.bz2 ilt-bfea0319aa07ad2c921ba29ba216e921d65f2ed1.tar.xz ilt-bfea0319aa07ad2c921ba29ba216e921d65f2ed1.zip |
Integer support in persistence
Splits bool and arithmatic types, pass arithmatic values as string views from JSON and
parse according to the target type.
Diffstat (limited to 'lib/jsonParse.ll')
-rw-r--r-- | lib/jsonParse.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jsonParse.ll b/lib/jsonParse.ll index 8029830..100bc46 100644 --- a/lib/jsonParse.ll +++ b/lib/jsonParse.ll @@ -52,7 +52,7 @@ text [^\\\"]* } <ARRAY_ITEM,INITIAL>{number} { - pushNumber(std::strtof(YYText(), NULL)); + pushNumber(YYText()); yy_pop_state(); } |