DMTF / libredfish

libRedfish is a C client library that allows for Creation of Entities (POST), Read of Entities (GET), Update of Entities (PATCH), Deletion of Entities (DELETE), running Actions (POST), receiving events, and providing some basic query abilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support int64 in GetPayloadIntValue()

ZephyrYin opened this issue · comments

In file libredfish/src/payload.c, getPayloadIntValue() is casting json_int_t(long long) to int, which doesn't support read of large int, should we return fixed width of 64 instead? Or we need to add another getPayloadInt64Value() to read int64.

We should add a new function so as not to break backwards compatibility.

close issue as pull request is merged.