2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-28 07:22:12 +00:00

Fixed: parsing negative value.

modified:   libs/math/tools/bessel_derivative_data_from_bessel_ipps.cpp
This commit is contained in:
AntonBikineev
2014-01-15 11:37:45 +04:00
parent c089c27ce4
commit d861eb75a5

View File

@@ -94,7 +94,7 @@ std::string parseValue(std::string::iterator& iter)
auto value = std::string{};
while (!isdigit(*iter))
while (!isdigit(*iter) && *iter != '-')
++iter;
while (isdigit(*iter) || *iter == '.' || *iter == 'e' || *iter == '-' || *iter == '+')
{