From c68ff2d329d49606a0f679c42c508a63f067bacc Mon Sep 17 00:00:00 2001 From: Rowan Torbitzky-Lane Date: Fri, 7 Mar 2025 13:11:36 -0600 Subject: [PATCH] fix warning --- src/HushGP/Instructions/Utility.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HushGP/Instructions/Utility.hs b/src/HushGP/Instructions/Utility.hs index f6196e7..0a2f989 100644 --- a/src/HushGP/Instructions/Utility.hs +++ b/src/HushGP/Instructions/Utility.hs @@ -283,7 +283,7 @@ mode xs = -- |Utility Function: Calculates the 2-norm of a list and returns it. twoNorm :: (Floating a) => [a] -> a -twoNorm xs = sqrt $ sum $ map (^ 2) xs +twoNorm xs = sqrt $ sum $ map (^ (2 :: Int)) xs -- |Utility Function: Takes in any value and returns 0. Used primarily to return 0 -- when a function such as maximum is operating on an empty list.