The size prameter of bundle_get_byte() is size_t type.
So this patch changes type of size parameter to size_t.
Change-Id: I42d36d7bec06e5a6eb363e8dcdf1b12039444f62
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
static rpc_port_parcel_h __get_parcel_from_bundle(bundle *b)
{
void *raw = nullptr;
- unsigned int size = 0;
+ size_t size = 0;
rpc_port_parcel_h p;
int ret = bundle_get_byte(b, "TIDL_RAW", &raw, &size);
if (ret != BUNDLE_ERROR_NONE)
return nullptr;
- ret = rpc_port_parcel_create_from_raw(&p, raw, size);
+ ret = rpc_port_parcel_create_from_raw(&p, raw, (unsigned int)size);
if (ret != RPC_PORT_ERROR_NONE)
return nullptr;
rpc_port_parcel_h <CLS_NAME>::GetParcelFromBundle(bundle* b) {
void* raw = nullptr;
- unsigned int size = 0;
+ size_t size = 0;
rpc_port_parcel_h p;
int ret = bundle_get_byte(b, "TIDL_RAW", &raw, &size);
if (ret != BUNDLE_ERROR_NONE)
return nullptr;
- ret = rpc_port_parcel_create_from_raw(&p, raw, size);
+ ret = rpc_port_parcel_create_from_raw(&p, raw,
+ static_cast<unsigned int>(size));
if (ret != RPC_PORT_ERROR_NONE)
return nullptr;