summaryrefslogtreecommitdiff
path: root/src/diff_tform.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-06-29 07:34:03 -0700
committerVicent Martí <vicent@github.com>2013-06-29 07:34:03 -0700
commitc61300eda94eedb53f072fedbf1bb52be21ca221 (patch)
tree4d8e650f0ca86534d8b7663d6071e31609604b2a /src/diff_tform.c
parentf2c41884c3082984f51743d557644cfa2136b878 (diff)
parentd90390c162418deb62302b3f56835ff781c0cfee (diff)
downloadlibgit2-c61300eda94eedb53f072fedbf1bb52be21ca221.tar.gz
Merge pull request #1690 from nulltoken/fix/warnings
Fix Win32/64 compilation warnings & memory leak
Diffstat (limited to 'src/diff_tform.c')
-rw-r--r--src/diff_tform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_tform.c b/src/diff_tform.c
index 8c4e96ecf..b137bd319 100644
--- a/src/diff_tform.c
+++ b/src/diff_tform.c
@@ -900,7 +900,7 @@ find_best_matches:
}
/* otherwise, if we just overwrote a source, update mapping */
else if (j > i && match_srcs[i].similarity > 0) {
- match_tgts[match_srcs[i].idx].idx = j;
+ match_tgts[match_srcs[i].idx].idx = (uint32_t)j;
}
num_updates++;