From a3736f636373307692210da8cdd7f518dca103b2 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 2 Nov 2015 18:41:22 -0500 Subject: [PATCH] Revert "Dates: Converted from strtol to std::stoi" This reverts commit d295755bb71576fe0faedb66374451782317bfbb. --- src/Dates.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dates.cpp b/src/Dates.cpp index 203d11e22..34519e465 100644 --- a/src/Dates.cpp +++ b/src/Dates.cpp @@ -386,12 +386,12 @@ bool namedDates (const std::string& name, Variant& value) 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)); } else { - number = std::stoi (name.substr (0, 1)); + number = strtol (name.substr (0, 1).c_str (), NULL, 10); ordinal = Lexer::lowerCase (name.substr (1)); }