Skip to content

Commit e5e2fac

Browse files
committed
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.
1 parent f4ebb2d commit e5e2fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ int git_buf_decode_base85(
440440

441441
acc += de;
442442

443-
cnt = (output_len < 4) ? output_len : 4;
443+
cnt = (output_len < 4) ? (int)output_len : 4;
444444
output_len -= cnt;
445445
do {
446446
acc = (acc << 8) | (acc >> 24);

0 commit comments

Comments
 (0)