diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-12-05 15:26:59 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-12-06 01:08:22 +0000 |
| commit | 37763d38fbf5db932be8d6a0070255839e7719ca (patch) | |
| tree | 4eee46a0f689872fc4b8440e91ff82ec0ee3b154 /src/cache.c | |
| parent | 9800728a746b872fdd22db9e68bc85ef0c851f27 (diff) | |
| download | libgit2-37763d38fbf5db932be8d6a0070255839e7719ca.tar.gz | |
threads: rename git_atomic to git_atomic32
Clarify the `git_atomic` type and functions now that we have a 64 bit
version as well (`git_atomic64`).
Diffstat (limited to 'src/cache.c')
| -rw-r--r-- | src/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c index a76da50d7..dbd4c319a 100644 --- a/src/cache.c +++ b/src/cache.c @@ -235,7 +235,7 @@ void git_cached_obj_decref(void *_obj) { git_cached_obj *obj = _obj; - if (git_atomic_dec(&obj->refcount) == 0) { + if (git_atomic32_dec(&obj->refcount) == 0) { switch (obj->flags) { case GIT_CACHE_STORE_RAW: git_odb_object__free(_obj); |
