lloyd / yajl

A fast streaming JSON parsing library in C.
http://lloyd.github.com/yajl
ISC License
2.15k stars 435 forks source link

remove unneeded parsing of plus sign when parsing integer #179

Open eriksjolund opened 8 years ago

eriksjolund commented 8 years ago

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)