Browse Source

Remove extra cast

Scott Lahteine 4 years ago
parent
commit
d932cd9be1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/feature/meatpack.cpp

+ 2
- 2
Marlin/src/feature/meatpack.cpp View File

@@ -89,7 +89,7 @@ uint8_t MeatPack::unpack_chars(const uint8_t pk, uint8_t* __restrict const chars
89 89
     out = kFirstCharIsLiteral;
90 90
   else {
91 91
     const uint8_t chr = pk & 0x0F;
92
-    chars_out[0] = meatPackLookupTable[(uint8_t)chr]; // Set the first char
92
+    chars_out[0] = meatPackLookupTable[chr]; // Set the first char
93 93
   }
94 94
 
95 95
   // 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
97 97
     out |= kSecondCharIsLiteral;
98 98
   else {
99 99
     const uint8_t chr = (pk >> 4) & 0x0F;
100
-    chars_out[1] = meatPackLookupTable[(uint8_t)chr]; // Set the second char
100
+    chars_out[1] = meatPackLookupTable[chr]; // Set the second char
101 101
   }
102 102
 
103 103
   return out;

Loading…
Cancel
Save