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 Jun 24, 2021
1 parent 6aeceed commit 2187856
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 2187856

Please sign in to comment.