| ... | @@ -898,8 +898,8 @@ pub fn decodeZStandardHeader(src: []const u8, consumed_count: ?*usize) !frame.ZS | ... | @@ -898,8 +898,8 @@ pub fn decodeZStandardHeader(src: []const u8, consumed_count: ?*usize) !frame.ZS |
| 898 | | 898 | |
| 899 | var dictionary_id: ?u32 = null; | 899 | var dictionary_id: ?u32 = null; |
| 900 | if (descriptor.dictionary_id_flag > 0) { | 900 | if (descriptor.dictionary_id_flag > 0) { |
| 901 | // if flag is 3 we field_size = 4, else field_size = flag | 901 | // if flag is 3 then field_size = 4, else field_size = flag |
| 902 | const field_size = (@as(u3, 1) << descriptor.dictionary_id_flag) >> 1; | 902 | const field_size = (@as(u4, 1) << descriptor.dictionary_id_flag) >> 1; |
| 903 | dictionary_id = readVarInt(u32, src[bytes_read_count .. bytes_read_count + field_size]); | 903 | dictionary_id = readVarInt(u32, src[bytes_read_count .. bytes_read_count + field_size]); |
| 904 | bytes_read_count += field_size; | 904 | bytes_read_count += field_size; |
| 905 | } | 905 | } |