- Timestamp:
- 2015-05-06T19:12:16Z (10 years ago)
- Children:
- 2533d10
- Parents:
- 1a81c83
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/parson.c
r1a81c83 r6f903c3 1226 1226 case JSONBoolean: 1227 1227 return json_value_init_boolean(json_value_get_boolean(value)); 1228 case JSONInteger: 1229 return json_value_init_integer(json_value_get_integer(value)); 1228 1230 case JSONNumber: 1229 1231 return json_value_init_number(json_value_get_number(value)); … … 1673 1675 } 1674 1676 return JSONSuccess; 1675 case JSONString: case JSON Number: case JSONBoolean: case JSONNull:1677 case JSONString: case JSONInteger: case JSONNumber: case JSONBoolean: case JSONNull: 1676 1678 return JSONSuccess; /* equality already tested before switch */ 1677 1679 case JSONError: default: … … 1730 1732 case JSONBoolean: 1731 1733 return json_value_get_boolean(a) == json_value_get_boolean(b); 1734 case JSONInteger: 1735 return json_value_get_integer(a) == json_value_get_integer(b); 1732 1736 case JSONNumber: 1733 1737 return fabs(json_value_get_number(a) - json_value_get_number(b)) < 0.000001; /* EPSILON */
Note: See TracChangeset
for help on using the changeset viewer.