Hi all, I've noticed that OCRepPayloadGetPropDouble() inside resource/csdk/stack/src/ocpayload.c is implemented to work with payload values of type OCREP_PROP_INT (in addition to OCREP_PROP_DOUBLE), which are defined as "int64_t". That causes a int64_t->double cast, so there's a possibility of data loss, since "double" is not precise enough to represent higher values of "int64_t".
Is that the expected behavior? I haven't seen any tests for this scenario, nor found any usage of the API, except for one occurrence inside resource/csdk/stack/test/cbortests.cpp. Thanks, Pawel Winogrodzki -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20161220/54ce0baa/attachment.html>
