Commit f52f593eb6b2fdbca8e8ca216d9cecf64322c59d

Edward Thomson 2020-12-20T16:33:42

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/repository.h b/src/repository.h
index 4b1222e..c0a2824 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;
 };