From d5abaf0b385990a7bc45a3e5a035d92625409f68 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 2 May 2022 13:30:35 +0200 Subject: [PATCH] decode: fix integer warning Newly introduced warning. Regular cast as value is checked just before. Ticket: #4516 --- src/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decode.c b/src/decode.c index c29d2827dd..c87941ff80 100644 --- a/src/decode.c +++ b/src/decode.c @@ -814,7 +814,7 @@ void PacketAlertGetMaxConfig(void) SCLogWarning(SC_ERR_INVALID_VALUE, "Invalid value for packet-alert-max, default value set instead"); } else { - packet_alert_max = max; + packet_alert_max = (uint16_t)max; } } SCLogDebug("detect->packet_alert_max set to %d", packet_alert_max); -- 2.47.2