From 9a33aa299721f664f347cb5fd2b2475947c0b184 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 2 Nov 2015 18:40:06 -0500 Subject: [PATCH] Revert "sort: Converted from strtof to std::stof" This reverts commit 8db04b8ec132716d00bdaf3b929ff7815dd6b043. --- src/sort.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sort.cpp b/src/sort.cpp index 95cfd6c31..f99ada61c 100644 --- a/src/sort.cpp +++ b/src/sort.cpp @@ -202,8 +202,8 @@ static bool sort_compare (int left, int right) std::string type = column->type (); if (type == "numeric") { - const float left_real = std::stof ((*global_data)[left].get_ref (field)); - const float right_real = std::stof ((*global_data)[right].get_ref (field)); + const float left_real = strtof (((*global_data)[left].get_ref (field)).c_str (), NULL); + const float right_real = strtof (((*global_data)[right].get_ref (field)).c_str (), NULL); if (left_real == right_real) continue;