Skip to content

Commit

Permalink
Write dict_id in zlib header in big-endian style.
Browse files Browse the repository at this point in the history
Signed-off-by: Mo Zhai <[email protected]>
  • Loading branch information
ZhaiMo15 committed Apr 14, 2022
1 parent ad8dce1 commit a5266f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion igzip/igzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ uint32_t isal_write_zlib_header(struct isal_zstream *stream, struct isal_zlib_he
out_buf[1] = flg;

if (dict_flag)
store_le_u32(out_buf + 2, z_hdr->dict_id);
store_be_u32(out_buf + 2, z_hdr->dict_id);

stream->next_out += hdr_size;
stream->total_out += hdr_size;
Expand Down

0 comments on commit a5266f2

Please sign in to comment.