summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-11-23 22:33:28 +0200
committerVicent Marti <tanoku@gmail.com>2010-11-24 00:23:15 +0200
commit824f4acde208670490eab77b24cb58a0216ba1df (patch)
treea2f62459def4d9ec07af7e295a972c8afa5d3183 /src/odb.c
parentf8b422b6d43bb4b12d3e614b024fbe8415971f4e (diff)
downloadlibgit2-824f4acde208670490eab77b24cb58a0216ba1df.tar.gz
Fix redeclaration warnings in MSVC
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index 0b6fecb18..fd8c27197 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -1435,7 +1435,7 @@ static int unpack_object(git_rawobj *out, git_pack *p, index_entry *e)
deflated_size = (size_t)e->size;
if (deflated_size == 0)
- deflated_size = p->pack_size - e->offset;
+ deflated_size = (size_t)(p->pack_size - e->offset);
byte = *buffer++ & 0xFF;
deflated_size--;