mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Revert "Dates: Converted from strtol to std::stoi"
This reverts commit d295755bb7
.
This commit is contained in:
parent
7d4ccb652e
commit
a3736f6363
1 changed files with 2 additions and 2 deletions
|
@ -386,12 +386,12 @@ bool namedDates (const std::string& name, Variant& value)
|
||||||
|
|
||||||
if (Lexer::isDigit (name[1]))
|
if (Lexer::isDigit (name[1]))
|
||||||
{
|
{
|
||||||
number = std::stoi (name.substr (0, 2));
|
number = strtol (name.substr (0, 2).c_str (), NULL, 10);
|
||||||
ordinal = Lexer::lowerCase (name.substr (2));
|
ordinal = Lexer::lowerCase (name.substr (2));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
number = std::stoi (name.substr (0, 1));
|
number = strtol (name.substr (0, 1).c_str (), NULL, 10);
|
||||||
ordinal = Lexer::lowerCase (name.substr (1));
|
ordinal = Lexer::lowerCase (name.substr (1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue