From f52f593eb6b2fdbca8e8ca216d9cecf64322c59d Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Sun, 20 Dec 2020 16:33:42 +0000 Subject: repository: use intptr_t's in the config map cache Since we're using atomic primitives to read and write into the config map cache, we need to read/write something pointer-sized. Use an `intptr_t` for the config map cache. --- src/repository.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repository.h b/src/repository.h index 4b1222e3a..c0a28242a 100644 --- a/src/repository.h +++ b/src/repository.h @@ -154,7 +154,7 @@ struct git_repository { git_atomic32 attr_session_key; - git_configmap_value configmap_cache[GIT_CONFIGMAP_CACHE_MAX]; + intptr_t configmap_cache[GIT_CONFIGMAP_CACHE_MAX]; git_strmap *submodule_cache; }; -- cgit v1.2.1