Skip to content

Incompatible integer op #54

@reinderien

Description

@reinderien

This line:

netmask = 0x100000000 - 2**(32-self.mask)

should not use exponentiation, it should use bit-shifts. Exponents coerce the expression to float and the code after fails when it tries to use "&".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions