X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=blobdiff_plain;f=doc%2Fapiref.rst;h=de2bcfe012145bef1b6b052d700c0fc0e452605e;hp=11a24c17bca47e980345f40842c384d6e9cb6a5f;hb=014c49c28570eddeb482f8580a88d48b491d15b0;hpb=68f2861e92e08eb5e2af51c026981bc1e990e1eb diff --git a/doc/apiref.rst b/doc/apiref.rst index 11a24c1..de2bcfe 100644 --- a/doc/apiref.rst +++ b/doc/apiref.rst @@ -287,18 +287,18 @@ String Number ====== -.. cfunction:: json_t *json_integer(int value) +.. cfunction:: json_t *json_integer(long value) .. refcounting:: new Returns a new JSON integer, or *NULL* on error. -.. cfunction:: int json_integer_value(const json_t *integer) +.. cfunction:: long json_integer_value(const json_t *integer) Returns the associated value of *integer*, or 0 if *json* is not a JSON integer. -.. cfunction:: int json_integer_set(const json_t *integer, int value) +.. cfunction:: int json_integer_set(const json_t *integer, long value) Sets the associated value of *integer* to *value*. Returns 0 on success and -1 if *integer* is not a JSON integer.