Skip to content

Commit

Permalink
fixed a typo in block max size
Browse files Browse the repository at this point in the history
  • Loading branch information
ebainville committed Jun 16, 2016
1 parent 33629bc commit af2993d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lzfse_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ size_t lzfse_encode_buffer(uint8_t *__restrict dst_buffer, size_t dst_size,
state->src = src_buffer;
state->src_encode_i = 0;

if (src_size >= (1<<15)-1) {
if (src_size >= 0xffffffffU) {
// lzfse only uses 32 bits for offsets internally, so if the input
// buffer is really huge, we need to process it in smaller chunks.
// Note that we switch over to this path for sizes much smaller
Expand Down

0 comments on commit af2993d

Please sign in to comment.