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:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-21 03:57:39 +0300
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-26 01:47:39 +0300
commite5e2fac82116fe83cea3649d886af89e68ba5378 (patch)
tree8be6116e42a8693de51f8991a79145568600c318
parentf4ebb2d4e8d3bb0e0c40737e5807ea1011f7c908 (diff)
buffer: explicitly cast
Quiet down a warning from MSVC about how we're potentially losing data. This is safe since we've explicitly tested it.
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0cc7f2b35..51fb48a45 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -440,7 +440,7 @@ int git_buf_decode_base85(
acc += de;
- cnt = (output_len < 4) ? output_len : 4;
+ cnt = (output_len < 4) ? (int)output_len : 4;
output_len -= cnt;
do {
acc = (acc << 8) | (acc >> 24);