Remove superfluous typing to Int
authorHelga Velroyen <helgav@google.com>
Wed, 19 Dec 2012 12:07:40 +0000 (13:07 +0100)
committerHelga Velroyen <helgav@google.com>
Wed, 19 Dec 2012 13:11:30 +0000 (14:11 +0100)
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

index 0a33931..a684a2b 100644 (file)
@@ -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