summaryrefslogtreecommitdiffstats
path: root/modules/brotli/enc/encoder_dict.c
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-11-13 15:59:29 +0000
committerMoonchild <moonchild@palemoon.org>2020-11-18 10:58:22 +0000
commitb645d59b1e170af1cb0963935bd8c915e56c431c (patch)
tree49fdc8001d5758558ada7a711f31e08095388294 /modules/brotli/enc/encoder_dict.c
parent71e0814af25e8619782294e65aa42aa1044dabdc (diff)
downloadUXP-b645d59b1e170af1cb0963935bd8c915e56c431c.tar
UXP-b645d59b1e170af1cb0963935bd8c915e56c431c.tar.gz
UXP-b645d59b1e170af1cb0963935bd8c915e56c431c.tar.lz
UXP-b645d59b1e170af1cb0963935bd8c915e56c431c.tar.xz
UXP-b645d59b1e170af1cb0963935bd8c915e56c431c.zip
Issue #1683 - Update Brotli lib to 1.0.9
Diffstat (limited to 'modules/brotli/enc/encoder_dict.c')
-rw-r--r--modules/brotli/enc/encoder_dict.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/brotli/enc/encoder_dict.c b/modules/brotli/enc/encoder_dict.c
index 8b2f6ad4a..c9e963b89 100644
--- a/modules/brotli/enc/encoder_dict.c
+++ b/modules/brotli/enc/encoder_dict.c
@@ -17,14 +17,15 @@ extern "C" {
void BrotliInitEncoderDictionary(BrotliEncoderDictionary* dict) {
dict->words = BrotliGetDictionary();
+ dict->num_transforms = (uint32_t)BrotliGetTransforms()->num_transforms;
- dict->hash_table = kStaticDictionaryHash;
+ dict->hash_table_words = kStaticDictionaryHashWords;
+ dict->hash_table_lengths = kStaticDictionaryHashLengths;
dict->buckets = kStaticDictionaryBuckets;
dict->dict_words = kStaticDictionaryWords;
dict->cutoffTransformsCount = kCutoffTransformsCount;
dict->cutoffTransforms = kCutoffTransforms;
-
}
#if defined(__cplusplus) || defined(c_plusplus)