Skip to content

Commit

Permalink
Sutraction tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyu003 committed Sep 14, 2017
1 parent 7397810 commit 30bc98f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func (s *Ip) GetNumberIPAddresses() int {
return 2 << (uint(32-s.networkSize) - 1)
return 2 << uint(31-s.networkSize)
}

func (s *Ip) GetNumberAddressableHosts() int {
Expand Down

0 comments on commit 30bc98f

Please sign in to comment.