From 2dad87ad89ee6e483516c9bc0da21c60977fe024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 20 Sep 2024 07:50:24 +0200 Subject: [PATCH] hydra-queue-runner: fix compilation warning instead of converting to double, we can convert to float right away. --- src/hydra-queue-runner/hydra-queue-runner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 5ffa7fe62..03b322f83 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -164,7 +164,7 @@ void State::parseMachines(const std::string & contents) ? string2Int(tokens[3]).value() : 1, // `speedFactor` - atof(tokens[4].c_str()), + std::stof(tokens[4].c_str()), // `supportedFeatures` std::move(supportedFeatures), // `mandatoryFeatures`