summaryrefslogtreecommitdiff
path: root/textproc/redisearch22/files/patch-src_redis__index.c
blob: 36e1bc26220898639a20ba184bce7ac926ec78af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/redis_index.c.orig	2020-02-29 20:35:56 UTC
+++ src/redis_index.c
@@ -108,7 +108,7 @@ int InvertedIndex_RegisterType(RedisModuleCtx *ctx) {
                                .rdb_load = InvertedIndex_RdbLoad,
                                .rdb_save = InvertedIndex_RdbSave,
                                .aof_rewrite = GenericAofRewrite_DisabledHandler,
-                               .mem_usage = InvertedIndex_MemUsage,
+                               .mem_usage = (const void *)InvertedIndex_MemUsage,
                                .free = InvertedIndex_Free};
 
   InvertedIndexType = RedisModule_CreateDataType(ctx, "ft_invidx", INVERTED_INDEX_ENCVER, &tm);