diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-07-24 07:57:58 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-07-24 16:10:12 +0200 |
commit | b8457baae24269c9fb777591e2a0e1b425ba31b6 (patch) | |
tree | 777a98dbd74f4906ac2faf0042e5118578196db7 /src/odb_loose.c | |
parent | 944d250f964698b33d9fa09e2e6af74b1dd84de2 (diff) | |
download | libgit2-b8457baae24269c9fb777591e2a0e1b425ba31b6.tar.gz |
portability: Improve x86/amd64 compatibility
Diffstat (limited to 'src/odb_loose.c')
-rw-r--r-- | src/odb_loose.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/odb_loose.c b/src/odb_loose.c index 2197a4264..fe60af28e 100644 --- a/src/odb_loose.c +++ b/src/odb_loose.c @@ -42,7 +42,7 @@ typedef struct loose_backend { typedef struct { size_t dir_len; unsigned char short_oid[GIT_OID_HEXSZ]; /* hex formatted oid to match */ - unsigned int short_oid_len; + size_t short_oid_len; int found; /* number of matching * objects already found */ unsigned char res_oid[GIT_OID_HEXSZ]; /* hex formatted oid of @@ -502,7 +502,7 @@ static int locate_object_short_oid( git_oid *res_oid, loose_backend *backend, const git_oid *short_oid, - unsigned int len) + size_t len) { char *objects_dir = backend->objects_dir; size_t dir_len = strlen(objects_dir); @@ -629,7 +629,7 @@ static int loose_backend__read_prefix( git_otype *type_p, git_odb_backend *backend, const git_oid *short_oid, - unsigned int len) + size_t len) { int error = 0; |