summaryrefslogtreecommitdiff
path: root/src/vector.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-06 23:13:00 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-06 23:36:21 +0200
commita44fc1d413bc1e2f0ed82aff60ce2069c33d2eda (patch)
tree115f8e574fe27959e5311819b8d72d4ea41cd941 /src/vector.c
parentf591833095ad9a3bbff42c76531131f7ec6a2954 (diff)
downloadlibgit2-a44fc1d413bc1e2f0ed82aff60ce2069c33d2eda.tar.gz
Fix type-conversion warnings
The types in the git_index_entry struct are now system-defaults, and get truncated to uint32_t's when written back on the index. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/vector.c')
-rw-r--r--src/vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.c b/src/vector.c
index 3f76df207..47e8ce845 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -34,7 +34,7 @@ static int resize_vector(git_vector *v)
{
void **new_contents;
- v->_alloc_size *= resize_factor;
+ v->_alloc_size = (unsigned int)(v->_alloc_size * resize_factor);
if (v->_alloc_size == 0)
v->_alloc_size = minimum_size;