Commit 712da82f authored by Helga Velroyen's avatar Helga Velroyen
Browse files

Remove superfluous typing to Int

Forgot to fix that after the review of patch
"Haskell/python compatibility test for networks".
Signed-off-by: default avatarHelga Velroyen <>
Reviewed-by: default avatarIustin Pop <>
parent 90634d95
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment