diff --git a/ninja-build b/ninja-build new file mode 100755 index 00000000000000..7a8e8e542ccba9 --- /dev/null +++ b/ninja-build @@ -0,0 +1,4 @@ +#!/bin/bash -e +# Auto-generated by configure, do not edit +args=(-C "$(dirname "$0")/out/configured") +exec ninja "${args[@]}" "$@" 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); } /**