summaryrefslogtreecommitdiff
path: root/src/cache.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2013-04-25 11:52:17 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2013-04-25 12:40:33 -0500
commiteb63fda2e24d007e31742587984a30e086249d43 (patch)
tree79d98a9ec5fae1586ab777c80e3d4f164f03a578 /src/cache.h
parentb4117e19b7a968f8e6b878d81c58a462093cf1b3 (diff)
downloadlibgit2-eb63fda2e24d007e31742587984a30e086249d43.tar.gz
git_atomic_ssize for 64-bit atomics only on 64-bit platforms
Diffstat (limited to 'src/cache.h')
-rw-r--r--src/cache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cache.h b/src/cache.h
index 16470e9c8..53fbcf4e9 100644
--- a/src/cache.h
+++ b/src/cache.h
@@ -31,12 +31,12 @@ typedef struct {
typedef struct {
git_oidmap *map;
git_mutex lock;
- int64_t used_memory;
+ ssize_t used_memory;
} git_cache;
extern bool git_cache__enabled;
-extern int64_t git_cache__max_storage;
-extern git_atomic64 git_cache__current_storage;
+extern ssize_t git_cache__max_storage;
+extern git_atomic_ssize git_cache__current_storage;
int git_cache_set_max_object_size(git_otype type, size_t size);