From 91afa9b5677babe7d731de63b7d9eea93fb9b1de Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 1 Nov 2015 21:44:08 -0500 Subject: [PATCH] CLI2: Converted from strtol to std::stoi --- src/CLI2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CLI2.cpp b/src/CLI2.cpp index b779f7198..5e947635f 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -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