From ef3374a8a81786a7b544ed7eded53c95766eb02f Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Wed, 12 Jun 2013 13:46:44 -0700 Subject: Improvements to git_array This changes the size data to uint32_t, fixes the array growth logic to use a simple 1.5x multiplier, and uses a generic inline function for growing the array to make the git_array_alloc API feel more natural (i.e. it returns a pointer to the new item). --- src/diff_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/diff_driver.c') diff --git a/src/diff_driver.c b/src/diff_driver.c index 5d3274a11..ae2b7c319 100644 --- a/src/diff_driver.c +++ b/src/diff_driver.c @@ -93,7 +93,7 @@ static int diff_driver_add_funcname( return error; } - git_array_alloc(drv->fn_patterns, re_ptr); + re_ptr = git_array_alloc(drv->fn_patterns); GITERR_CHECK_ALLOC(re_ptr); memcpy(re_ptr, &re, sizeof(re)); -- cgit v1.2.1