Skip to content

Commit

Permalink
Fix compilation on impish
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Sep 9, 2021
1 parent e0e9606 commit a3c4616
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions BaseTools/Source/C/BrotliCompress/dec/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1942,8 +1942,8 @@ static uint32_t BrotliMaxDistanceSymbol(uint32_t ndirect, uint32_t npostfix) {
}

BrotliDecoderResult BrotliDecoderDecompress(
size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
uint8_t* decoded_buffer) {
size_t encoded_size, const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)], size_t* decoded_size,
uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]) {
BrotliDecoderState s;
BrotliDecoderResult result;
size_t total_out = 0;
Expand Down
4 changes: 2 additions & 2 deletions BaseTools/Source/C/BrotliCompress/enc/encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1432,8 +1432,8 @@ static size_t MakeUncompressedStream(

BROTLI_BOOL BrotliEncoderCompress(
int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
const uint8_t* input_buffer, size_t* encoded_size,
uint8_t* encoded_buffer) {
const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)], size_t* encoded_size,
uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]) {
BrotliEncoderState* s;
size_t out_size = *encoded_size;
const uint8_t* input_start = input_buffer;
Expand Down

0 comments on commit a3c4616

Please sign in to comment.