Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-03-12 23:36:35 +0400
committerVicent Marti <tanoku@gmail.com>2013-03-12 23:36:35 +0400
commitad003763ccb39c0e59f5c1d8372a202541a9049e (patch)
tree7ec888d42defe91791f56fe719ea38db631e5757 /src/util.c
parentc6d7d877fc891d829695069cbbd17f57e378fcd3 (diff)
MSVC: What could possibly be the size of a void*?
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
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;