Fix type-conversion warning in MSVC Signed-off-by: Vicent Marti <tanoku@gmail.com>
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;