summaryrefslogtreecommitdiff
path: root/base85.c
diff options
context:
space:
mode:
Diffstat (limited to 'base85.c')
-rw-r--r--base85.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base85.c b/base85.c
index b88270f908..b417a15bbc 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;