Changing ocstack to retrieve double instead of int using cJson
authorOmkar Hegde <omkar.m.hegde@intel.com>
Thu, 11 Jun 2015 22:09:38 +0000 (15:09 -0700)
committerErich Keane <erich.keane@intel.com>
Fri, 12 Jun 2015 16:24:08 +0000 (16:24 +0000)
commit0dcfca5412e32da7adefea4ce0912460ea5eb8f6
tree0ad7011b632b2c87ab8a2fdf13915136ee1d39b6
parent700124f965b755b4b05f79a4c09f0678cc79f56d
Changing ocstack to retrieve double instead of int using cJson

Previously, we retrieved the sequence no. from presence payload
using object->valueint. Since the sequence no. is 32-bit unsigned
int, this caused the valueint to overflow. Hence, changing it to
object->valuedouble. This should fix IOT-549.

Change-Id: Idd30408c617e2ff84faa7c7c7f2a3f028577d337
Signed-off-by: Omkar Hegde <omkar.m.hegde@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1245
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocstack.c