mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
lejp: enable negative integers
https://github.com/warmcat/libwebsockets/issues/1957
This commit is contained in:
parent
43ba4e4ef5
commit
81bff78c86
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ lejp_parse(struct lejp_ctx *ctx, const unsigned char *json, int len)
|
|||
break;
|
||||
|
||||
case LEJP_MP_VALUE:
|
||||
if (c >= '0' && c <= '9') {
|
||||
if (c == '-' || (c >= '0' && c <= '9')) {
|
||||
ctx->npos = 0;
|
||||
ctx->dcount = 0;
|
||||
ctx->f = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue