Commit da7c3c71 by Vicent Marti

Fix warnings in vector.c

Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent 9b3985fa
......@@ -28,12 +28,10 @@
#include "vector.h"
static const double resize_factor = 1.75;
static const int minimum_size = 8;
static const size_t minimum_size = 8;
static int resize_vector(git_vector *v)
{
void **new_contents;
v->_alloc_size = ((unsigned int)(v->_alloc_size * resize_factor)) + 1;
if (v->_alloc_size < minimum_size)
v->_alloc_size = minimum_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment