зеркало из https://github.com/mozilla/gecko-dev.git
1009b0e489 | ||
---|---|---|
.. | ||
dec | ||
README.mozilla | ||
moz.build | ||
update.sh |
README.mozilla
This is the Brotli data compression library from https://github.com/google/brotli. Currently, we import only the Brotli decoder (the /dec/ subdirectory), not the encoder (/enc/ subdirectory). Upstream code can be viewed at https://github.com/google/brotli/tree/master/dec and cloned by git clone https://github.com/google/brotli The in-tree copy is updated by running sh update.sh from within the modules/brotli directory. Current version: [commit 933bb9bd800c8f5f7f6a02382d33c902a98ef73a]. this trivial patch is added to preserve no-warnings behavior in code that includes the brotli interface. future imports are expected to have an equivalent change made upstream already. diff --git a/modules/brotli/dec/bit_reader.h b/modules/brotli/dec/bit_reader.h --- a/modules/brotli/dec/bit_reader.h +++ b/modules/brotli/dec/bit_reader.h @@ -284,17 +284,17 @@ static BROTLI_INLINE int BrotliPeekByte( int bytes_left = (int)(sizeof(br->val_) - (br->bit_pos_ >> 3)); if (br->bit_pos_ & 7) { return -1; } if (offset < bytes_left) { return (br->val_ >> (br->bit_pos_ + (unsigned)(offset << 3))) & 0xFF; } offset -= bytes_left; - if (offset < br->avail_in) { + if (offset < (long)br->avail_in) { return br->next_in[offset]; } return -1; } /* Copies remaining input bytes stored in the bit reader to the output. Value num may not be larger than BrotliGetRemainingBytes. The bit reader must be warmed up again after this. */