From: Adam Dickmeiss Date: Tue, 30 Apr 2013 11:37:35 +0000 (+0200) Subject: Fix yaz_base64decode to use proper signed var YAZ-656 X-Git-Tag: v4.2.57~12 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=2c293bcf3f3d36ca121b1e23769919c941e8ea19;ds=sidebyside Fix yaz_base64decode to use proper signed var YAZ-656 Problem occurred on platforms with big endian and unsigned char (by default). --- diff --git a/src/base64.c b/src/base64.c index cf6d63a..a8eb203 100644 --- a/src/base64.c +++ b/src/base64.c @@ -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)