Skip to content

Commit

Permalink
fix assert (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Mar 27, 2020
1 parent 4b32a9b commit f2be13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/huffman.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static int encode_write_bit_pattern(struct encoder_state *state, struct aws_huff
size_t aws_huffman_get_encoded_length(struct aws_huffman_encoder *encoder, struct aws_byte_cursor to_encode) {

AWS_PRECONDITION(encoder);
AWS_PRECONDITION(to_encode.ptr && to_encode.len);
AWS_PRECONDITION(aws_byte_cursor_is_valid(&to_encode));

size_t num_bits = 0;

Expand Down

0 comments on commit f2be13a

Please sign in to comment.