diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-12-20 16:33:42 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-12-20 16:33:42 +0000 |
commit | f52f593eb6b2fdbca8e8ca216d9cecf64322c59d (patch) | |
tree | d01af02d41073bb578f757eaf9adc5075b03709a | |
parent | 1865806e466d0b18d399ba877b940ab331d365b3 (diff) | |
download | libgit2-f52f593eb6b2fdbca8e8ca216d9cecf64322c59d.tar.gz |
repository: use intptr_t's in the config map cacheethomson/configmapcache
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.
-rw-r--r-- | src/repository.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; }; |