mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2025-02-28 23:41:33 +01:00
use size_t instead of UL in std::min call
This commit is contained in:
parent
89020df4ba
commit
beda83a0b6
@ -1,5 +1,6 @@
|
|||||||
#include "lane_order.hpp"
|
#include "lane_order.hpp"
|
||||||
|
|
||||||
|
#include <cstddef>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include "../variant_visitor.hpp"
|
#include "../variant_visitor.hpp"
|
||||||
@ -50,7 +51,7 @@ void linear_view::lane_order::Custom::update_from_string() {
|
|||||||
{}, {}, {}, {}
|
{}, {}, {}, {}
|
||||||
}};
|
}};
|
||||||
button_to_lane.clear();
|
button_to_lane.clear();
|
||||||
const auto upper_bound = std::min(16UL, as_string.length());
|
const auto upper_bound = std::min(std::size_t{16}, as_string.length());
|
||||||
for (std::size_t lane = 0; lane < upper_bound; lane++) {
|
for (std::size_t lane = 0; lane < upper_bound; lane++) {
|
||||||
const auto letter = as_string.at(lane);
|
const auto letter = as_string.at(lane);
|
||||||
const auto pair = letter_to_index.find(letter);
|
const auto pair = letter_to_index.find(letter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user