diff options
Diffstat (limited to 'gifed/src/block')
-rw-r--r-- | gifed/src/block/palette.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gifed/src/block/palette.rs b/gifed/src/block/palette.rs index 534cfeb..9c4a5a9 100644 --- a/gifed/src/block/palette.rs +++ b/gifed/src/block/palette.rs @@ -42,7 +42,7 @@ impl Palette { /// Returns the number of items that the decoder *thinks* is in the palette. /// This is 2^(n + 1) where n = [Palette::packed_len] pub fn computed_len(&self) -> usize { - 2usize.pow(self.packed_len() as u32 + 1) + 1 << (self.packed_len() + 1) } /// Pushes a color on to the end of the table |