From 63b9c6460358b285c7e2de1dd3c0b873a24b7e3d Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Mon, 13 Dec 2021 19:33:16 +0100 Subject: [PATCH] Fix warning --- lib/libesp32/Berry/src/be_byteslib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libesp32/Berry/src/be_byteslib.c b/lib/libesp32/Berry/src/be_byteslib.c index 0c3085faa..82f4ab2be 100644 --- a/lib/libesp32/Berry/src/be_byteslib.c +++ b/lib/libesp32/Berry/src/be_byteslib.c @@ -246,7 +246,7 @@ static unsigned int decode_base64(unsigned char input[], unsigned char output[]) static void buf_set_len(buf_impl* attr, const size_t len) { uint16_t old_len = attr->len; - attr->len = ((int32_t)len <= attr->size) ? len : attr->size; + attr->len = ((int32_t)len <= attr->size) ? (int32_t)len : attr->size; if (old_len < attr->len) { memset((void*) &attr->bufptr[old_len], 0, attr->len - old_len); }