Skip to content

Commit 73900e9

Browse files
committedMar 8, 2017
Fix std::stoi exception
1 parent edebdf3 commit 73900e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hydra-queue-runner/hydra-queue-runner.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct Config
5252
uint64_t getIntOption(const std::string & key, uint64_t def = 0)
5353
{
5454
auto i = options.find(key);
55-
return i == options.end() ? def : std::stoi(i->second);
55+
return i == options.end() ? def : std::stoll(i->second);
Has a conversation. Original line has a conversation.
5656
}
5757

5858
bool getBoolOption(const std::string & key, bool def = false)

0 commit comments

Comments
 (0)
Please sign in to comment.