Commit 86627121c8611a1dd5d2daa2e81000ab29847de5

Vicent Marti 2011-03-06T00:03:31

Fix type-conversion warning in MSVC Signed-off-by: Vicent Marti <tanoku@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/oid.c b/src/oid.c
index 7841d37..81b7d60 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -206,7 +206,7 @@ static trie_node *push_leaf(git_oid_shorten *os, node_index idx, int push_at, co
 			return NULL;
 	}
 
-	idx_leaf = os->node_count++;
+	idx_leaf = (node_index)os->node_count++;
 
 	if (os->node_count == SHRT_MAX)
 		os->full = 1;