Fix yaz_base64decode to use proper signed var YAZ-656
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 30 Apr 2013 11:37:35 +0000 (13:37 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 30 Apr 2013 11:37:35 +0000 (13:37 +0200)
Problem occurred on platforms with big endian and unsigned char (by
default).

src/base64.c

index cf6d63a..a8eb203 100644 (file)
@@ -85,7 +85,7 @@ int yaz_base64decode(const char *in, char *out)
 
     while (len >= 4)
     {
-       char i0, i1, i2, i3;
+       int i0, i1, i2, i3;
 
        i0 = next_char(&in, &len);
         if (i0 < 0)