mirror of
https://github.com/json-c/json-c.git
synced 2026-03-27 17:09:06 +08:00
Simplify things by storing integer values only as int64_t's internally, and
omit the range check during parsing since we already have the checks when accessing the value. There is no longer a json_type_int64, only json_type_int. Fix some problems with parsing 0 and -0 values, and add a couple of tests. Fix some minor compile issues on HPUX environments. git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@60 327403b1-1117-474d-bef2-5cb71233fd97
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
Failed to parse, sscanf != 1
|
||||
buf=x parseit=1, value=-666
|
||||
buf=0 parseit=0, value=0
|
||||
buf=-0 parseit=0, value=0
|
||||
buf=00000000 parseit=0, value=0
|
||||
buf=-00000000 parseit=0, value=0
|
||||
buf=1 parseit=0, value=1
|
||||
buf=2147483647 parseit=0, value=2147483647
|
||||
buf=-1 parseit=0, value=-1
|
||||
|
||||
Reference in New Issue
Block a user