base64: fix signedness warning

Fri, 14 May 2021 16:20:29 +0200

author
David Demelier <markand@malikania.fr>
date
Fri, 14 May 2021 16:20:29 +0200
changeset 27
77b935a269b4
parent 26
2a0d6539ab60
child 28
94c8fd9ab0ee

base64: fix signedness warning

base64.c file | annotate | diff | comparison | revisions
--- a/base64.c	Fri May 14 16:18:28 2021 +0200
+++ b/base64.c	Fri May 14 16:20:29 2021 +0200
@@ -140,7 +140,7 @@
 
 	while (srcsz && dstsz) {
 		signed char inputbuf[4] = { -1, -1, -1, -1 };
-		int parsed = 0, required;
+		size_t parsed = 0, required;
 
 		for (; srcsz && parsed < 4; parsed++) {
 			/* '=' is only allowed in last 2 characters. */

mercurial