diff options
author | Russell Belfer <rb@github.com> | 2013-11-01 09:38:03 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-11-01 09:38:03 -0700 |
commit | 948f00b4e79bb60c68e03342500013246e642ae6 (patch) | |
tree | ecace4b5262169a801eda0f142759fcc03010e4f /src/array.h | |
parent | ac5e507cec8e075a2095abcf4c8c82a01b82a5f9 (diff) | |
parent | d3ed2106c137c1117f70499544868db21d9ea715 (diff) | |
download | libgit2-948f00b4e79bb60c68e03342500013246e642ae6.tar.gz |
Merge pull request #1933 from libgit2/vmg/gcc-warnings
Warnings for Windows x64 (MSVC) and GCC on Linux
Diffstat (limited to 'src/array.h')
-rw-r--r-- | src/array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/array.h b/src/array.h index d7272d78c..1d4e1c224 100644 --- a/src/array.h +++ b/src/array.h @@ -57,9 +57,9 @@ GIT_INLINE(void *) git_array_grow(void *_a, size_t item_size) } #define git_array_alloc(a) \ - ((a).size >= (a).asize) ? \ + (((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) |