Skip to content

Commit

Permalink
Fixing compile issue on Mac (#6538)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lazarkov authored and pull[bot] committed Aug 11, 2021
1 parent 2b64064 commit 2339026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
} else {
error = CHIP_ERROR_NO_MEMORY;
}
size = decoded.length();
size = static_cast<uint16_t>(decoded.length());
}
} else {
error = CHIP_ERROR_KEY_NOT_FOUND;
Expand Down

0 comments on commit 2339026

Please sign in to comment.