From 3dad3f356f4ae57bea6a6e9bb85c06dd52ca56aa Mon Sep 17 00:00:00 2001 From: Nivedita Sarkar Date: Fri, 26 Jul 2024 01:09:54 -0700 Subject: [PATCH] Fix build error for Linux configure build of all-clusters-app --- src/app/clusters/thermostat-server/thermostat-server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 059616b128f97d..a7895849dd319e 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -408,7 +408,7 @@ uint8_t CountUpdatedPresetsAfterApplyingPendingPresets(Delegate * delegate) numberOfPendingPresets++; } - return numberOfPresets + numberOfPendingPresets - numberOfMatches; + return static_cast(numberOfPresets + numberOfPendingPresets - numberOfMatches); } /**