fkie-cad / dewolf

A research decompiler implemented as a Binary Ninja plugin.
GNU Lesser General Public License v2.1
162 stars 9 forks source link

Change super type of typing/Float from typing/Integer to typing/Type #296

Closed rihi closed 11 months ago

rihi commented 11 months ago

Currently, typing/Float extends typing/Integer. This makes it non trivial to check if a type is an integer. eg: isInstance(type, Integer) and not isInstance(type, Float) or type.__class__ == Integer.__class__

This pull request is a quick fix which changes the super type of Float from Integer to Type and all affected code by this change.