diff options
author | Eugene Kliuchnikov <eustas.ru@gmail.com> | 2023-01-04 12:10:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 12:10:29 +0100 |
commit | 0ea4603880ff8e344c6642fd38232da3705ebc29 (patch) | |
tree | 547415638ebcd3c53631fa6f1dc878c605bcdd12 | |
parent | ce92c95601500990ede414314ca1c6c955277efe (diff) | |
download | brotli-0ea4603880ff8e344c6642fd38232da3705ebc29.zip brotli-0ea4603880ff8e344c6642fd38232da3705ebc29.tar.gz brotli-0ea4603880ff8e344c6642fd38232da3705ebc29.tar.bz2 |
Fix MSVC warning (#998)
Fix #875
-rw-r--r-- | c/enc/compound_dictionary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/enc/compound_dictionary.c b/c/enc/compound_dictionary.c index 824e515..a3b5e69 100644 --- a/c/enc/compound_dictionary.c +++ b/c/enc/compound_dictionary.c @@ -34,7 +34,7 @@ static PreparedDictionary* CreatePreparedDictionaryWithParams(MemoryManager* m, uint32_t* slot_offsets = NULL; uint16_t* heads = NULL; uint32_t* items = NULL; - const uint8_t** source_ref = NULL; + uint8_t** source_ref = NULL; uint32_t i; uint32_t* slot_size = NULL; uint32_t* slot_limit = NULL; @@ -108,7 +108,7 @@ static PreparedDictionary* CreatePreparedDictionaryWithParams(MemoryManager* m, slot_offsets = (uint32_t*)(&result[1]); heads = (uint16_t*)(&slot_offsets[num_slots]); items = (uint32_t*)(&heads[num_buckets]); - source_ref = (const uint8_t**)(&items[total_items]); + source_ref = (uint8_t**)(&items[total_items]); result->magic = kLeanPreparedDictionaryMagic; result->num_items = total_items; |