diff --git a/src/Context.cpp b/src/Context.cpp index 7924a4ab6..290d6a03b 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -611,7 +611,7 @@ void Context::getLimits (int& rows, int& lines) } else { - rows = (int) strtol (limit.c_str (), NULL, 10); + rows = std::stoi (limit); lines = 0; } }