Commit b9fcf9074bcf020784754b3db5174ea6a00a664e

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 de009ba..1b4d62b 100644
--- a/src/repository.h
+++ b/src/repository.h
@@ -154,7 +154,7 @@ struct git_repository {
 
 	git_atomic attr_session_key;
 
-	git_configmap_value configmap_cache[GIT_CONFIGMAP_CACHE_MAX];
+	intptr_t configmap_cache[GIT_CONFIGMAP_CACHE_MAX];
 	git_strmap *submodule_cache;
 };