From 73900e9f5fe18153a8d7a5eeaaedb6721653b53b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 8 Mar 2017 15:07:52 +0100 Subject: [PATCH] Fix std::stoi exception --- 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 924b4747..28e5afaa 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -52,7 +52,7 @@ struct Config uint64_t getIntOption(const std::string & key, uint64_t def = 0) { auto i = options.find(key); - return i == options.end() ? def : std::stoi(i->second); + return i == options.end() ? def : std::stoll(i->second); } bool getBoolOption(const std::string & key, bool def = false)