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