From 2339026f980d278cdaf8824ffcccfd1db8cc6e28 Mon Sep 17 00:00:00 2001 From: Lazar Kovacic Date: Thu, 6 May 2021 16:30:21 +0200 Subject: [PATCH] Fixing compile issue on Mac (#6538) Problem The error of implicit conversion loses integer precision appears in compile time Summary of Changes - Updated the CHIPPersistentStorageDelegateBridge.mm file Test - Used the gn_build.sh to verify the building is successful --- .../Framework/CHIP/CHIPPersistentStorageDelegateBridge.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.mm b/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.mm index 6e9bfa699c963a..01ea04fd044046 100644 --- a/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.mm +++ b/src/darwin/Framework/CHIP/CHIPPersistentStorageDelegateBridge.mm @@ -105,7 +105,7 @@ } else { error = CHIP_ERROR_NO_MEMORY; } - size = decoded.length(); + size = static_cast(decoded.length()); } } else { error = CHIP_ERROR_KEY_NOT_FOUND;