Remove extra cast

This commit is contained in:
Scott Lahteine 2021-01-27 15:22:55 -06:00 committed by Scott Lahteine
parent 7a559e4733
commit be058430b4

View File

@ -89,7 +89,7 @@ uint8_t MeatPack::unpack_chars(const uint8_t pk, uint8_t* __restrict const chars
out = kFirstCharIsLiteral;
else {
const uint8_t chr = pk & 0x0F;
chars_out[0] = meatPackLookupTable[(uint8_t)chr]; // Set the first char
chars_out[0] = meatPackLookupTable[chr]; // Set the first char
}
// Check if upper nybble is 1111... if so, we don't need the second char.
@ -97,7 +97,7 @@ uint8_t MeatPack::unpack_chars(const uint8_t pk, uint8_t* __restrict const chars
out |= kSecondCharIsLiteral;
else {
const uint8_t chr = (pk >> 4) & 0x0F;
chars_out[1] = meatPackLookupTable[(uint8_t)chr]; // Set the second char
chars_out[1] = meatPackLookupTable[chr]; // Set the second char
}
return out;