blobmsg: blobmsg_add_json_element() 64-bit values
authorDainis Jonitis <dainis.jonitis@ubnt.com>
Fri, 10 Jan 2020 14:41:04 +0000 (16:41 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 20 Jan 2020 15:16:49 +0000 (16:16 +0100)
commita36ee96618a9613c234d1f4404769becdf5c55e3
tree4b848e874d01131afba6b67176a8907cbf98ce71
parentf0da3a4283b7d1192de5c7e620df9381cd5a724b
blobmsg: blobmsg_add_json_element() 64-bit values

libjson-c json_type_int values are stored as int64_t. Use
json_object_get_int64() instead of json_object_get_int()
to avoid clamping to INT32_MAX.

Reviewed-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Dainis Jonitis <dainis.jonitis@ubnt.com>
[fixed author to match SoB, added unit test results]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
blobmsg_json.c
tests/cram/test_blobmsg.t