Remove extra cast
This commit is contained in:
parent
7a559e4733
commit
be058430b4
@ -89,7 +89,7 @@ uint8_t MeatPack::unpack_chars(const uint8_t pk, uint8_t* __restrict const chars
|
|||||||
out = kFirstCharIsLiteral;
|
out = kFirstCharIsLiteral;
|
||||||
else {
|
else {
|
||||||
const uint8_t chr = pk & 0x0F;
|
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.
|
// 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;
|
out |= kSecondCharIsLiteral;
|
||||||
else {
|
else {
|
||||||
const uint8_t chr = (pk >> 4) & 0x0F;
|
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;
|
return out;
|
||||||
|
Loading…
Reference in New Issue
Block a user