fix json_parse_uint64() usage of errno

introduced in #542
fixes #601
This commit is contained in:
Pierce Lopez
2020-05-10 13:20:02 -04:00
parent 26f080997d
commit 003b58782b
3 changed files with 8 additions and 9 deletions

View File

@@ -100,6 +100,7 @@ JSON_EXPORT int json_object_to_fd(int fd, struct json_object *obj, int flags);
*/
JSON_EXPORT const char *json_util_get_last_err(void);
/* these parsing helpers return zero on success */
JSON_EXPORT int json_parse_int64(const char *buf, int64_t *retval);
JSON_EXPORT int json_parse_uint64(const char *buf, uint64_t *retval);
JSON_EXPORT int json_parse_double(const char *buf, double *retval);