From 0673da54b5db6be849e5ad3b22e80f3cadfccca9 Mon Sep 17 00:00:00 2001 From: Toni Date: Thu, 9 Nov 2023 10:16:57 +0100 Subject: Fixed implicit u32 cast in `ndpi_data_min()` / `ndpi_data_max()`. (#2139) Signed-off-by: Toni Uhlig --- src/lib/ndpi_analyze.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c index f6d828107..c905139f8 100644 --- a/src/lib/ndpi_analyze.c +++ b/src/lib/ndpi_analyze.c @@ -150,8 +150,8 @@ u_int64_t ndpi_data_last(struct ndpi_analyze_struct *s) { } /* Return min/max on all values */ -u_int32_t ndpi_data_min(struct ndpi_analyze_struct *s) { return(s ? s->min_val : 0); } -u_int32_t ndpi_data_max(struct ndpi_analyze_struct *s) { return(s ? s->max_val : 0); } +u_int64_t ndpi_data_min(struct ndpi_analyze_struct *s) { return(s ? s->min_val : 0); } +u_int64_t ndpi_data_max(struct ndpi_analyze_struct *s) { return(s ? s->max_val : 0); } /* ********************************************************************************* */ -- cgit v1.2.3