Skip to content

Commit

Permalink
pack: fix missing scientific notation in JSON parser
Browse files Browse the repository at this point in the history
Signed-off-by: Aivaras Baranauskas <[email protected]>
  • Loading branch information
aivarasbaranauskas authored and edsiper committed Jan 21, 2025
1 parent 58026b2 commit eeaf65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flb_pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static inline int is_float(const char *buf, int len)
const char *p = buf;

while (p <= end) {
if (*p == 'e' && p < end && *(p + 1) == '-') {
if ((*p == 'e' || *p == 'E') && p < end && (*(p + 1) == '-' || *(p + 1) == '+')) {
return 1;
}
else if (*p == '.') {
Expand Down

0 comments on commit eeaf65e

Please sign in to comment.