Codechange: rename byte to uint8_t (#12308)

This commit is contained in:
Patric Stout
2024-03-16 23:59:32 +01:00
committed by GitHub
parent bd7120bae4
commit a3cfd23cf9
355 changed files with 1654 additions and 1656 deletions

View File

@@ -16,7 +16,7 @@
* These are used to specify a single track.
* Can be translated to a trackbit with TrackToTrackbit
*/
enum Track : byte {
enum Track : uint8_t {
TRACK_BEGIN = 0, ///< Used for iterations
TRACK_X = 0, ///< Track along the x-axis (north-east to south-west)
TRACK_Y = 1, ///< Track along the y-axis (north-west to south-east)
@@ -32,7 +32,7 @@ enum Track : byte {
DECLARE_POSTFIX_INCREMENT(Track)
/** Bitfield corresponding to Track */
enum TrackBits : byte {
enum TrackBits : uint8_t {
TRACK_BIT_NONE = 0U, ///< No track
TRACK_BIT_X = 1U << TRACK_X, ///< X-axis track
TRACK_BIT_Y = 1U << TRACK_Y, ///< Y-axis track
@@ -64,7 +64,7 @@ DECLARE_ENUM_AS_BIT_SET(TrackBits)
* reversing track dirs are not considered to be 'valid' except in a small
* corner in the road vehicle controller.
*/
enum Trackdir : byte {
enum Trackdir : uint8_t {
TRACKDIR_BEGIN = 0, ///< Used for iterations
TRACKDIR_X_NE = 0, ///< X-axis and direction to north-east
TRACKDIR_Y_SE = 1, ///< Y-axis and direction to south-east