Skip to content

Commit f13996e

Browse files
committed
Decrease BitField size from u32 to u8
A bitfield can only be created from integral types, whose maximum size is 64 (which can easily fit inside a u8)
1 parent 2e51358 commit f13996e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoding.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub enum Encoding<'a> {
2828
Class,
2929
Sel,
3030
Unknown,
31-
BitField(u32),
31+
BitField(u8),
3232
Pointer(&'a Encoding<'a>),
3333
Array(usize, &'a Encoding<'a>),
3434
Struct(&'a str, &'a [Encoding<'a>]),

0 commit comments

Comments
 (0)