Skip to content

Commit 818f82c

Browse files
author
Deepika
committed
Typecasting to int to resolve warning:#68-D: integer conversion resulted in a change of sign
1 parent f31ea01 commit 818f82c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/storage/FEATURE_STORAGE/cfstore/source/configuration_store.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@ static int32_t cfstore_delete_ex(cfstore_area_hkvt_t* hkvt)
23922392
memset(ctx->area_0_tail-kv_size, 0, kv_size);
23932393

23942394
/* The KV area has shrunk so a negative size_diff should be indicated to cfstore_file_update(). */
2395-
ret = cfstore_file_update(hkvt->head, -1 * kv_size);
2395+
ret = cfstore_file_update(hkvt->head, -1 *(int32_t)kv_size);
23962396
if(ret < ARM_DRIVER_OK){
23972397
CFSTORE_ERRLOG("%s:Error:file update failed\n", __func__);
23982398
goto out0;

0 commit comments

Comments
 (0)