diff --git a/boot/boot_serial/src/boot_serial.c b/boot/boot_serial/src/boot_serial.c index fb73e6b1..f369084b 100644 --- a/boot/boot_serial/src/boot_serial.c +++ b/boot/boot_serial/src/boot_serial.c @@ -1133,7 +1133,7 @@ boot_serial_output(void) static int boot_serial_in_dec(char *in, int inlen, char *out, int *out_off, int maxout) { - int rc; + size_t rc; uint16_t crc; uint16_t len; @@ -1145,7 +1145,7 @@ boot_serial_in_dec(char *in, int inlen, char *out, int *out_off, int maxout) } #elif __ESPRESSIF__ int err; - err = base64_decode((unsigned char *)&out[*out_off], maxout - *out_off, (size_t *)&rc, (unsigned char *)in, inlen); + err = base64_decode((unsigned char *)&out[*out_off], maxout - *out_off, &rc, (unsigned char *)in, inlen); if (err) { return -1; }