mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
sort: Converted from strtof to std::stof
This commit is contained in:
parent
d9cf0fb923
commit
8db04b8ec1
1 changed files with 2 additions and 2 deletions
|
|
@ -202,8 +202,8 @@ static bool sort_compare (int left, int right)
|
||||||
std::string type = column->type ();
|
std::string type = column->type ();
|
||||||
if (type == "numeric")
|
if (type == "numeric")
|
||||||
{
|
{
|
||||||
const float left_real = strtof (((*global_data)[left].get_ref (field)).c_str (), NULL);
|
const float left_real = std::stof ((*global_data)[left].get_ref (field));
|
||||||
const float right_real = strtof (((*global_data)[right].get_ref (field)).c_str (), NULL);
|
const float right_real = std::stof ((*global_data)[right].get_ref (field));
|
||||||
|
|
||||||
if (left_real == right_real)
|
if (left_real == right_real)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue