Fix warnings

This commit is contained in:
WarmUpTill
2025-12-11 18:43:49 +01:00
committed by WarmUpTill
parent 7c6d657fdd
commit 225913b44d
11 changed files with 26 additions and 32 deletions

View File

@@ -56,7 +56,7 @@ std::optional<double> GetDouble(const std::string &str)
std::optional<int> GetInt(const std::string &str)
{
char *end = nullptr;
int value = std::strtol(str.c_str(), &end, 10);
int value = (int)std::strtol(str.c_str(), &end, 10);
if (end != str.c_str() && *end == '\0' && value != INT_MAX &&
value != INT_MIN) {