Typecasting to int to resolve warning:#68-D: integer conversion resulted in a change of sign

pull/4548/head
Deepika 2017-06-15 11:50:52 -05:00
parent f31ea01237
commit 818f82c5bd
1 changed files with 1 additions and 1 deletions

View File

@ -2392,7 +2392,7 @@ static int32_t cfstore_delete_ex(cfstore_area_hkvt_t* hkvt)
memset(ctx->area_0_tail-kv_size, 0, kv_size);
/* The KV area has shrunk so a negative size_diff should be indicated to cfstore_file_update(). */
ret = cfstore_file_update(hkvt->head, -1 * kv_size);
ret = cfstore_file_update(hkvt->head, -1 *(int32_t)kv_size);
if(ret < ARM_DRIVER_OK){
CFSTORE_ERRLOG("%s:Error:file update failed\n", __func__);
goto out0;