From 103354862d1cb288e37cd812a52fda7497f59614 Mon Sep 17 00:00:00 2001 From: Sagar Dhawan Date: Fri, 30 Apr 2021 09:17:33 -0700 Subject: [PATCH] Specify the type for std::min (#6394) --- src/platform/Darwin/KeyValueStoreManagerImpl.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/Darwin/KeyValueStoreManagerImpl.mm b/src/platform/Darwin/KeyValueStoreManagerImpl.mm index 67522628721dbb..0ce40ec09da9e7 100644 --- a/src/platform/Darwin/KeyValueStoreManagerImpl.mm +++ b/src/platform/Darwin/KeyValueStoreManagerImpl.mm @@ -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((item.value.length), value_size)); } return CHIP_NO_ERROR;