summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-21 00:57:39 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-25 22:47:39 +0000
commite5e2fac82116fe83cea3649d886af89e68ba5378 (patch)
tree8be6116e42a8693de51f8991a79145568600c318 /src/buffer.c
parentf4ebb2d4e8d3bb0e0c40737e5807ea1011f7c908 (diff)
downloadlibgit2-e5e2fac82116fe83cea3649d886af89e68ba5378.tar.gz
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.
Diffstat (limited to 'src/buffer.c')
-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);