Signed to unsigned conversion to appease GCC

This commit is contained in:
Tristan Le Guern
2015-07-29 15:39:30 +02:00
committed by Dmitry Podgorny
parent 75938845fd
commit 982d840472

View File

@@ -509,7 +509,7 @@ char *base64_encode(xmpp_ctx_t *ctx,
int clen;
char *cbuf, *c;
uint32_t word, hextet;
int i;
unsigned i;
clen = base64_encoded_len(ctx, len);
cbuf = xmpp_alloc(ctx, clen + 1);
@@ -587,7 +587,7 @@ unsigned char *base64_decode(xmpp_ctx_t *ctx,
int dlen;
unsigned char *dbuf, *d;
uint32_t word, hextet;
int i;
unsigned i;
/* len must be a multiple of 4 */
if (len & 0x03) return NULL;