From 712da82f42c8ba9516670b93e3ebdbda23a9eb8a Mon Sep 17 00:00:00 2001 From: Helga Velroyen <helgav@google.com> Date: Wed, 19 Dec 2012 13:07:40 +0100 Subject: [PATCH] Remove superfluous typing to Int Forgot to fix that after the review of patch "Haskell/python compatibility test for networks". Signed-off-by: Helga Velroyen <helgav@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- htest/Test/Ganeti/TestCommon.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htest/Test/Ganeti/TestCommon.hs b/htest/Test/Ganeti/TestCommon.hs index 0a33931da..a684a2b4d 100644 --- a/htest/Test/Ganeti/TestCommon.hs +++ b/htest/Test/Ganeti/TestCommon.hs @@ -245,7 +245,7 @@ genIp4Net = do -- | Helper function to compute the number of hosts in a network -- given the netmask. (For IPv4 only.) netmask2NumHosts :: Int -> Int -netmask2NumHosts n = (2::Int)^((32::Int)-n) +netmask2NumHosts n = 2^(32-n) -- | Generates an arbitrary IPv6 network address in textual form. -- The generated address is not simpflified, e. g. an address like -- GitLab