From 9c6c68fc24b2127f269960fbefa8a246de89e01b Mon Sep 17 00:00:00 2001 From: Jeff Tung <100387939+jtung-apple@users.noreply.github.com> Date: Wed, 15 May 2024 19:36:48 -0700 Subject: [PATCH] Fix compiler warning --- src/darwin/Framework/CHIP/MTRDevice.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 03628610b37e18..773e5481591707 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -980,7 +980,7 @@ - (BOOL)_deviceUsesThread // Bit 2 Ethernet uint32_t networkCommissioningClusterFeatureMapValue = static_cast(networkCommissioningClusterFeatureMapValueNumber.unsignedLongValue); - return (networkCommissioningClusterFeatureMapValue & (1 << 1)); + return (networkCommissioningClusterFeatureMapValue & (1 << 1)) ? YES : NO; } - (void)_clearSubscriptionPoolWork