This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#5525 Add support for floating point start/end range values

  • Loading branch information...
reinder authored and nlyan committed Jan 25, 2017
1 parent f35e3e5 commit 1499f7b27c5b4b34644652a7c1dcf0f387a0febc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/lib/server/Config.cpp
@@ -2096,11 +2096,11 @@ ConfigReadContext::parseInterval(const ArgList& args) const
}
char* end;
- long startValue = strtol(args[0].c_str(), &end, 10);
+ double startValue = strtod(args[0].c_str(), &end);
if (end[0] != '\0') {
throw XConfigRead(*this, "invalid interval \"%{1}\"", concatArgs(args));
}
- long endValue = strtol(args[1].c_str(), &end, 10);
+ double endValue = strtod(args[1].c_str(), &end);
if (end[0] != '\0') {
throw XConfigRead(*this, "invalid interval \"%{1}\"", concatArgs(args));
}

0 comments on commit 1499f7b

Please sign in to comment.