Remove the const to fix the -Wignored-qualifiers warning with GCC 8 (Part 2)

This commit is contained in:
trav90 2018-08-10 15:21:45 -05:00 committed by Roy Tam
commit 8fd121628a
4 changed files with 5 additions and 5 deletions

View file

@ -1000,7 +1000,7 @@ PendingLookup::GetSpecHash(nsACString& aSpec, nsACString& hexEncodedHash)
static const char* const hex = "0123456789ABCDEF";
hexEncodedHash.SetCapacity(2 * binaryHash.Length());
for (size_t i = 0; i < binaryHash.Length(); ++i) {
auto c = static_cast<const unsigned char>(binaryHash[i]);
auto c = static_cast<unsigned char>(binaryHash[i]);
hexEncodedHash.Append(hex[(c >> 4) & 0x0F]);
hexEncodedHash.Append(hex[c & 0x0F]);
}