From 3a8e6f2280ab9fb5d63bf0c9e70af9baf104578c Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Tue, 23 Aug 2022 09:51:15 +0200 Subject: [PATCH] fix: add explicit cast to abide g++ compiler --- src/tls13.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tls13.c b/src/tls13.c index b4f3305c1..2625b4f13 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -5879,8 +5879,8 @@ int SendTls13ServerHello(WOLFSSL* ssl, byte extMsgType) ssl->options.buildingMsg = 0; #ifdef WOLFSSL_DTLS13 if (ssl->options.dtls) { - ret = Dtls13HandshakeSend(ssl, output, sendSz, sendSz, - extMsgType, 0); + ret = Dtls13HandshakeSend(ssl, output, sendSz, sendSz, + (enum HandShakeType)extMsgType, 0); WOLFSSL_LEAVE("SendTls13ServerHello", ret); WOLFSSL_END(WC_FUNC_SERVER_HELLO_SEND);