New loplugin:charrightshift

Change-Id: Ib645fb11004bc0fe05c9c416ae72b0ae56c23a15
This commit is contained in:
Stephan Bergmann
2017-01-06 18:15:24 +01:00
parent 59339dec1c
commit a7d554f3b2
3 changed files with 59 additions and 2 deletions

View File

@@ -216,7 +216,7 @@ namespace URLEncoder
result += c;
else {
result += '%';
result += hex[c >> 4];
result += hex[static_cast<unsigned char>(c) >> 4];
result += hex[c & 0xf];
}
}