X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=base85.c;h=b417a15bbc83fff7180078a4cf9f73603477a295;hb=2374502c6ca1c8007cb35682f13fb5db044df9ea;hp=b88270f90844095b3d352cc4213cbebd95a7f420;hpb=75b44066f3ed7cde238cdea1f0bf9e2f1744c820;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;