Skip to content

Commit

Permalink
Specify the type for std::min (#6394)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-apple authored and pull[bot] committed Jul 16, 2021
1 parent 0285ed8 commit 1033548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Darwin/KeyValueStoreManagerImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ - (instancetype)initWithContext:(nonnull NSManagedObjectContext *)context
}

if (value != nullptr) {
memcpy(value, item.value.bytes, std::min(item.value.length, value_size));
memcpy(value, item.value.bytes, std::min<size_t>((item.value.length), value_size));
}

return CHIP_NO_ERROR;
Expand Down

0 comments on commit 1033548

Please sign in to comment.