diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-12-07 00:13:00 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-12-07 00:36:21 +0300 |
commit | a44fc1d413bc1e2f0ed82aff60ce2069c33d2eda (patch) | |
tree | 115f8e574fe27959e5311819b8d72d4ea41cd941 /src/vector.c | |
parent | f591833095ad9a3bbff42c76531131f7ec6a2954 (diff) |
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.c | 2 |
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; |