Skip to content

Commit

Permalink
fix huffman table static declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Jun 24, 2023
1 parent 99a25a0 commit 096636f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tamp/_c_src/tamp/compressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ static inline tamp_res partial_flush(TampCompressor *compressor, unsigned char *
/**
* @brief Find the best match for the current input buffer.
*
* WARNING: this optimized implementation expects a little endian system.
*
* @param[in,out] compressor TampCompressor object to perform search on.
* @param[out] match_index If match_size is 0, this value is undefined.
* @param[out] match_size Size of best found match.
Expand Down
2 changes: 1 addition & 1 deletion tamp/_c_src/tamp/decompressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#define FLUSH 15

const uint8_t HUFFMAN_TABLE[128] = {50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 85, 85, 85, 85, 122, 123, 104, 104, 86, 86, 86, 86, 93, 93, 93, 93, 68, 68, 68, 68, 68, 68, 68, 68, 105, 105, 124, 127, 87, 87, 87, 87, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17};
static const uint8_t HUFFMAN_TABLE[128] = {50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 85, 85, 85, 85, 122, 123, 104, 104, 86, 86, 86, 86, 93, 93, 93, 93, 68, 68, 68, 68, 68, 68, 68, 68, 105, 105, 124, 127, 87, 87, 87, 87, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17};


/**
Expand Down

0 comments on commit 096636f

Please sign in to comment.