diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-21 03:57:39 +0300 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-26 01:47:39 +0300 |
commit | e5e2fac82116fe83cea3649d886af89e68ba5378 (patch) | |
tree | 8be6116e42a8693de51f8991a79145568600c318 | |
parent | f4ebb2d4e8d3bb0e0c40737e5807ea1011f7c908 (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.c | 2 |
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); |