Fix yaz_base64decode to use proper signed var YAZ-656
[yaz-moved-to-github.git] / 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)