From bd5a2b92776e011aaea22cc0e18eb6178eda3a15 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 16 Feb 2023 00:08:39 -0500 Subject: [PATCH] revert --- include/blt/std/math.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/blt/std/math.h b/include/blt/std/math.h index bef4b09..82e41e0 100644 --- a/include/blt/std/math.h +++ b/include/blt/std/math.h @@ -583,14 +583,10 @@ namespace blt { T average(){ T total = 0; - int size = 0; for (int i = 0; i < Size; i++){ - if (data[i] == m_default) - continue; total += data[i]; - size++; } - return total / size; + return total / Size; } ~averagizer_o_matic(){