You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I guess the E notation will mostly be triggered by client code doing float operations that tend towards 0.
But eventually everything number parsing above jsmn is affected in lightsd and should be fixed according to the JSON grammar:
number
int
int frac
int exp
int frac exp
int
digit
digit1-9 digits
- digit
- digit1-9 digits
frac
. digits
exp
e digits
digits
digit
digit digits
e
e
e+
e-
E
E+
E-
The text was updated successfully, but these errors were encountered:
lightsd parses floats manually so they can be stored in integers but fails to support numbers in E notation, which are part of the JSON standard.
The following functions should be fixed first:
Since I guess the E notation will mostly be triggered by client code doing float operations that tend towards 0.
But eventually everything number parsing above jsmn is affected in lightsd and should be fixed according to the JSON grammar:
The text was updated successfully, but these errors were encountered: