diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-27 22:08:43 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-27 22:08:43 +0200 |
commit | 6b0e2a25cf1e98d3f11d4e6c0305dd327048bbb8 (patch) | |
tree | a62c23f4e66949fe109e07dec95ad3a3e5229a7c /src/game/game.cpp | |
parent | 9d0fe1b42c9f6a5c09bab444966d347a71a4b905 (diff) |
refactor: use int types from std namespace
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r-- | src/game/game.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp index 2c00b4b..921f21d 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -82,7 +82,7 @@ void Game::on_start() statusline->set_section_style( StatusLineSection::A, - {.bg_color = static_cast<uint32_t>(fmt::color::green), + {.bg_color = static_cast<std::uint32_t>(fmt::color::green), .bold = true, .padding_left = 1U, .padding_right = 1U}); @@ -443,7 +443,7 @@ void Game::_on_command_mode_update() noexcept { const auto position = _cursor_controller->where(); - const auto input_pos_x = static_cast<uint32_t>(position.get_x()) - 1U; + const auto input_pos_x = static_cast<std::uint32_t>(position.get_x()) - 1U; if (input_pos_x == 0U) { @@ -480,7 +480,7 @@ void Game::_on_command_mode_update() noexcept break; case keycodes::RIGHT_ARROW: - if (static_cast<uint32_t>(_cursor_controller->where().get_x()) - 1U < + if (static_cast<std::uint32_t>(_cursor_controller->where().get_x()) - 1U < _command_mode_input.size()) { _cursor_controller->move(Vector2::right(), 1U, true); @@ -495,7 +495,7 @@ void Game::_on_command_mode_update() noexcept default: const auto position = _cursor_controller->where(); - const auto input_pos_x = static_cast<uint32_t>(position.get_x()) - 1U; + const auto input_pos_x = static_cast<std::uint32_t>(position.get_x()) - 1U; if (input_pos_x < _command_mode_input.length()) { |