File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ pub fn DecompressStream(
101
101
);
102
102
const buffer = try RingBuffer .init (self .allocator , frame_context .window_size );
103
103
104
- const literals_data = try self .allocator .alloc (u8 , options . window_size_max );
104
+ const literals_data = try self .allocator .alloc (u8 , frame_context . block_size_max );
105
105
errdefer self .allocator .free (literals_data );
106
106
107
- const sequence_data = try self .allocator .alloc (u8 , options . window_size_max );
107
+ const sequence_data = try self .allocator .alloc (u8 , frame_context . block_size_max );
108
108
errdefer self .allocator .free (sequence_data );
109
109
110
110
self .literal_fse_buffer = literal_fse_buffer ;
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ pub const compressed_block = struct {
391
391
pub const table_size_max = struct {
392
392
pub const literal = 1 << table_accuracy_log_max .literal ;
393
393
pub const match = 1 << table_accuracy_log_max .match ;
394
- pub const offset = 1 << table_accuracy_log_max .match ;
394
+ pub const offset = 1 << table_accuracy_log_max .offset ;
395
395
};
396
396
};
397
397
You can’t perform that action at this time.
0 commit comments