Codechange: Specify underlying type for all enums excluding those exposed to scripts. (#13383)

This commit is contained in:
2025-01-28 22:17:34 +00:00
committed by GitHub
parent 6fda85c569
commit afc0745aa2
180 changed files with 371 additions and 367 deletions

View File

@@ -39,7 +39,7 @@ DECLARE_ENUM_AS_ADDABLE(SignalType)
* simple boolean logic will do. But do try to compare to this enum instead of
* normal boolean evaluation, since that will make future additions easier.
*/
enum SignalState {
enum SignalState : uint8_t {
SIGNAL_STATE_RED = 0, ///< The signal is red
SIGNAL_STATE_GREEN = 1, ///< The signal is green
};