From 930d194f32a5da6c7d00e69bc53090548611c735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Wed, 10 Apr 2024 23:24:40 +0200 Subject: [PATCH] fix type warning --- include/utl/pipes/avg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utl/pipes/avg.h b/include/utl/pipes/avg.h index 221812f..5d81b36 100644 --- a/include/utl/pipes/avg.h +++ b/include/utl/pipes/avg.h @@ -17,7 +17,7 @@ struct avg_t { ++count; r.next(it); } - return sum / static_cast(count); + return static_cast(sum) / static_cast(count); } };