This commit is contained in:
lizzie
2026-05-20 14:57:42 +00:00
committed by crueter
parent 1fdc6c13ae
commit 7de5db10ad
+3 -3
View File
@@ -198,13 +198,13 @@ public:
if constexpr (std::is_same_v<Type, std::string>) {
this->SetValue(input);
} else if constexpr (std::is_same_v<Type, std::optional<u32>>) {
this->SetValue(u32(std::strtoul(input.c_str(), NULL, 10)));
this->SetValue(u32(std::strtoul(input.c_str(), nullptr, 10)));
} else if constexpr (std::is_same_v<Type, bool>) {
this->SetValue(input == "true");
} else if constexpr (std::is_same_v<Type, float>) {
this->SetValue(std::strtof(input.c_str(), NULL));
this->SetValue(std::strtof(input.c_str(), nullptr));
} else {
this->SetValue(Type(std::strtoll(input.c_str(), NULL)));
this->SetValue(Type(std::strtoll(input.c_str(), nullptr, 10)));
}
}