Skip to content

Commit f52f593

Browse files
committed
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 parent 1865806 commit f52f593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repository.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ struct git_repository {
154154

155155
git_atomic32 attr_session_key;
156156

157-
git_configmap_value configmap_cache[GIT_CONFIGMAP_CACHE_MAX];
157+
intptr_t configmap_cache[GIT_CONFIGMAP_CACHE_MAX];
158158
git_strmap *submodule_cache;
159159
};
160160

0 commit comments

Comments
 (0)