From 5175bda774327205b93595627eec6e5a8955f564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 15 Jul 2019 13:33:29 +0200 Subject: [PATCH] Use 'nonneg' instead of 'unsigned' in checkautovariables --- lib/checkautovariables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkautovariables.cpp b/lib/checkautovariables.cpp index fb7fee3af..9c33bbfad 100644 --- a/lib/checkautovariables.cpp +++ b/lib/checkautovariables.cpp @@ -184,7 +184,7 @@ static bool isAddressOfLocalVariable(const Token *expr) return false; } -static bool variableIsUsedInScope(const Token* start, unsigned int varId, const Scope *scope) +static bool variableIsUsedInScope(const Token* start, nonneg int varId, const Scope *scope) { if (!start) // Ticket #5024 return false;