Fix warning
authorHugo Landau <hlandau@openssl.org>
Mon, 12 Feb 2024 11:31:18 +0000 (11:31 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 19 Feb 2024 09:15:46 +0000 (10:15 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23535)

ssl/quic/quic_impl.c

index 76cd4d13cfe2f5a3ee147e39654a4eb4f47c14be..4f552ca6b2a70aee5db3c28152e48c347866517e 100644 (file)
@@ -3356,9 +3356,9 @@ static int qc_getset_event_handling(QCTX *ctx, uint32_t class_,
 
         value_out = *p_value_in;
         if (ctx->is_stream)
-            ctx->xso->event_handling_mode = value_out;
+            ctx->xso->event_handling_mode = (int)value_out;
         else
-            ctx->qc->event_handling_mode = value_out;
+            ctx->qc->event_handling_mode = (int)value_out;
     } else {
         value_out = ctx->is_stream
             ? ctx->xso->event_handling_mode