mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 16:15:40 +00:00
made min_size an unsigned since size() also returns an unsigned
This commit is contained in:
parent
948b80e286
commit
57435bb17e
@ -114,7 +114,7 @@ namespace t_translation {
|
||||
* given it's padded to 4 chars else padded to 7 chars
|
||||
*/
|
||||
std::string number_to_string_(t_letter terrain, const int start_position = -1);
|
||||
std::string number_to_string_(t_letter terrain, const int start_position, const int min_size);
|
||||
std::string number_to_string_(t_letter terrain, const int start_position, const size_t min_size);
|
||||
|
||||
/**
|
||||
* converts a terrain string to a letter for the builder the translation
|
||||
@ -906,7 +906,7 @@ std::string number_to_string_(t_letter terrain, const int start_position)
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string number_to_string_(t_letter terrain, const int start_position, const int min_size)
|
||||
std::string number_to_string_(t_letter terrain, const int start_position, const size_t min_size)
|
||||
{
|
||||
std::string result = number_to_string_(terrain, start_position);
|
||||
if(result.size() < min_size) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user