diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-03-12 23:36:35 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-03-12 23:36:35 +0400 |
commit | ad003763ccb39c0e59f5c1d8372a202541a9049e (patch) | |
tree | 7ec888d42defe91791f56fe719ea38db631e5757 /src/util.c | |
parent | c6d7d877fc891d829695069cbbd17f57e378fcd3 (diff) |
MSVC: What could possibly be the size of a void*?
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c index 102bbaeb3..885978046 100644 --- a/src/util.c +++ b/src/util.c @@ -642,7 +642,8 @@ void git__insertsort_r( void *els, size_t nel, size_t elsize, void *swapel, git__sort_r_cmp cmp, void *payload) { - uint8_t *base = els, *end = els + nel * elsize; + uint8_t *base = els; + uint8_t *end = base + nel * elsize; uint8_t *i, *j; bool freeswap = !swapel; |