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); } /**