diff options
| author | Vicent Martà <vicent@github.com> | 2013-09-17 09:57:55 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-09-17 09:57:55 -0700 |
| commit | bb371b62e950e3307d3acf2f772495a60565d266 (patch) | |
| tree | b4479ec3ad261bcac13493ee3f5ad45d15dfdda2 /src/array.h | |
| parent | 4581f9d8ab72e9b97817e1eaa7154bcec1c7f0b1 (diff) | |
| parent | f60ed4e6495b8bf68d0604335672e6f300330b3b (diff) | |
| download | libgit2-bb371b62e950e3307d3acf2f772495a60565d266.tar.gz | |
Merge pull request #1847 from libgit2/filters-alternative
Alternative proposal for filter API
Diffstat (limited to 'src/array.h')
| -rw-r--r-- | src/array.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.h b/src/array.h index b82079bd8..d7272d78c 100644 --- a/src/array.h +++ b/src/array.h @@ -59,7 +59,7 @@ GIT_INLINE(void *) git_array_grow(void *_a, size_t item_size) #define git_array_alloc(a) \ ((a).size >= (a).asize) ? \ git_array_grow(&(a), sizeof(*(a).ptr)) : \ - (a).ptr ? &(a).ptr[(a).size++] : NULL + ((a).ptr ? &(a).ptr[(a).size++] : NULL) #define git_array_last(a) ((a).size ? &(a).ptr[(a).size - 1] : NULL) |
