Skip to content
Snippets Groups Projects
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 <helgav@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 90634d95
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment