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.
Other
48 stars 21 forks source link

Support int64 in GetPayloadIntValue() #125

Closed ZephyrYin closed 4 years ago

ZephyrYin commented 4 years ago

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.

pboyd04 commented 4 years ago

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

ZephyrYin commented 4 years ago

close issue as pull request is merged.