mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: Converted from strtol to std::stoi
This commit is contained in:
parent
c903185481
commit
91afa9b567
1 changed files with 2 additions and 2 deletions
|
@ -1772,8 +1772,8 @@ void CLI2::insertIDExpr ()
|
|||
else
|
||||
{
|
||||
bool ascending = true;
|
||||
int low = strtol (r->first.c_str (), NULL, 10);
|
||||
int high = strtol (r->second.c_str (), NULL, 10);
|
||||
int low = std::stoi (r->first);
|
||||
int high = std::stoi (r->second);
|
||||
if (low <= high)
|
||||
ascending = true;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue