base64: use more ints

Mon, 17 May 2021 14:02:41 +0200

author
David Demelier <markand@malikania.fr>
date
Mon, 17 May 2021 14:02:41 +0200
changeset 30
74316437d97e
parent 29
daeb2f6e6b22
child 31
16f64f665b1d

base64: use more ints

base64.c file | annotate | diff | comparison | revisions
--- a/base64.c	Mon May 17 13:43:17 2021 +0200
+++ b/base64.c	Mon May 17 14:02:41 2021 +0200
@@ -139,8 +139,7 @@
 		srcsz = strlen(src);
 
 	while (srcsz && dstsz) {
-		unsigned char inputbuf[4] = {0};
-		size_t parsed = 0, required;
+		unsigned int parsed = 0, required, inputbuf[4] = {0};
 
 		for (; srcsz && parsed < 4; parsed++) {
 			/* '=' is only allowed in last 2 characters. */

mercurial