aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_analyze.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-11-08 22:54:30 +0100
committerToni Uhlig <matzeton@googlemail.com>2023-11-08 23:55:14 +0100
commit9bf09f37d8e4e91c4ad9dd2790194fdf74abafab (patch)
tree68d7a2ccf7d69657c5c02fc0499da3541a9516f2 /src/lib/ndpi_analyze.c
parentb539b0d0902bc0fda235d8bbf1bc7f64e9028465 (diff)
Fixed implicit u32 cast in `ndpi_data_min()` / `ndpi_data_max()`.fix/data-analyse-implicit-u32-cast
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/ndpi_analyze.c')
-rw-r--r--src/lib/ndpi_analyze.c4
1 files changed, 2 insertions, 2 deletions
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); }
/* ********************************************************************************* */