Skip to content

Commit 08a8b7c

Browse files
Try to fix SonarQube issue
1 parent 724fe1d commit 08a8b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checkbufferoverrun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int getMinFormatStringOutputLength(const std::vector<const Token*> &param
9696
std::string digits_string;
9797
bool i_d_x_f_found = false;
9898
int parameterLength = 0;
99-
int inputArgNr = formatStringArgNr;
99+
nonneg int inputArgNr = formatStringArgNr;
100100
for (std::size_t i = 1; i + 1 < formatString.length(); ++i) {
101101
if (formatString[i] == '\\') {
102102
if (i < formatString.length() - 1 && formatString[i + 1] == '0')

0 commit comments

Comments
 (0)