diff options
| author | Alex Budovski <abudovski@gmail.com> | 2011-01-11 16:07:45 +1100 |
|---|---|---|
| committer | Alex Budovski <abudovski@gmail.com> | 2011-01-11 18:31:55 +1100 |
| commit | f0bde7fac0796bb6d7bfe794bd049041f2133905 (patch) | |
| tree | 8d0b13c20236ca2faa2017fe9ca4fa69b9efb0a5 /src/util.h | |
| parent | e0c23b88c57a5d765e5572d8ed317a4ba4da102a (diff) | |
| download | libgit2-f0bde7fac0796bb6d7bfe794bd049041f2133905.tar.gz | |
Revised platform types to use 'best supported' size.
This will allow graceful migration to 64 bit file sizes and timestamps should
git's binary interface be extended to allow this.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h index 5e6c7d28b..99c4f5a84 100644 --- a/src/util.h +++ b/src/util.h @@ -27,10 +27,10 @@ extern uint32_t git__hash(const void *key, int len, uint32_t seed); /** @return true if p fits into the range of a size_t */ -GIT_INLINE(int) git__is_sizet(off_t p) +GIT_INLINE(int) git__is_sizet(git_off_t p) { size_t r = (size_t)p; - return p == (off_t)r; + return p == (git_off_t)r; } /* 32-bit cross-platform rotl */ |
