Skip to content

Commit

Permalink
Fix build error for Linux configure build of all-clusters-app
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple committed Jul 26, 2024
1 parent dfe9f7c commit 4ec78b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ninja-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -e
# Auto-generated by configure, do not edit
args=(-C "$(dirname "$0")/out/configured")
exec ninja "${args[@]}" "$@"
2 changes: 1 addition & 1 deletion src/app/clusters/thermostat-server/thermostat-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ uint8_t CountUpdatedPresetsAfterApplyingPendingPresets(Delegate * delegate)
numberOfPendingPresets++;
}

return numberOfPresets + numberOfPendingPresets - numberOfMatches;
return static_cast<uint8_t>(numberOfPresets + numberOfPendingPresets - numberOfMatches);
}

/**
Expand Down

0 comments on commit 4ec78b0

Please sign in to comment.