Skip to content

Commit

Permalink
refactor: Use the smallest possible size for enum
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSchammo committed Jan 7, 2025
1 parent d06549f commit ef2c731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/weather.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <string_view>
#include <vector>

typedef enum { DIST, CHAMFER } fog_parameter;
typedef enum : std::uint8_t { DIST, CHAMFER } fog_parameter;

[[nodiscard]] inline auto get_intensity(const simulation_type sim_t) {

Expand Down

0 comments on commit ef2c731

Please sign in to comment.