Oops, use the converted double

This commit is contained in:
Ian Bell
2025-04-12 07:54:52 -04:00
parent 873c1f700b
commit b234116404

View File

@@ -340,7 +340,7 @@ class Configuration
auto skey = config_key_to_string(key);
throw ValueError("Unable to convert \""+std::string(envval)+"\" to double for key ["+skey+"]");
}
items.erase(key); items.emplace(key, ConfigurationItem(key, std::stod(envval)));
items.erase(key); items.emplace(key, ConfigurationItem(key, d));
break;
case ConfigurationDataTypes::CONFIGURATION_BOOL_TYPE:
int b;