Skip to content

remove unneeded parsing of plus sign when parsing integer#179

Open
eriksjolund wants to merge 1 commit intolloyd:masterfrom
eriksjolund:fix_improve_integer_parsing
Open

remove unneeded parsing of plus sign when parsing integer#179
eriksjolund wants to merge 1 commit intolloyd:masterfrom
eriksjolund:fix_improve_integer_parsing

Conversation

@eriksjolund
Copy link
Copy Markdown

Looking at
https://tools.ietf.org/html/rfc7159
numbers are not allowed to start with a plus sign.

This patch removes an unneeded parsing of a "+" in the function

long long yajl_parse_integer(const unsigned char *number, unsigned int length)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant