X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=base85.c;h=b417a15bbc83fff7180078a4cf9f73603477a295;hb=e79999b1a285d4dcf1d84bc893c864516a390cfa;hp=b88270f90844095b3d352cc4213cbebd95a7f420;hpb=196821f440d46029f0399a7d97c0cfc78a870244;p=git.git diff --git a/base85.c b/base85.c index b88270f90..b417a15bb 100644 --- a/base85.c +++ b/base85.c @@ -91,7 +91,7 @@ void encode_85(char *buf, const unsigned char *data, int bytes) unsigned acc = 0; int cnt; for (cnt = 24; cnt >= 0; cnt -= 8) { - int ch = *data++; + unsigned ch = *data++; acc |= ch << cnt; if (--bytes == 0) break;