Commit 0877e56d authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed possible unsigned overflow.

parent eed0241d
......@@ -922,7 +922,10 @@ int CppQuickFixOperation::endOf(unsigned index) const
int CppQuickFixOperation::endOf(const CPlusPlus::AST *ast) const
return endOf(ast->lastToken() - 1);
if (unsigned end = ast->lastToken())
return endOf(end - 1);
return 0;
void CppQuickFixOperation::startAndEndOf(unsigned index, int *start, int *end) const
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment