vmt / udis86

Disassembler Library for x86 and x86-64
http://udis86.sourceforge.net
BSD 2-Clause "Simplified" License
1.02k stars 299 forks source link

Compatible with Python3 #139

Open BlueArc0 opened 2 years ago

BlueArc0 commented 2 years ago

fix build error for Python3: TypeError: %x format: an integer is required, not float

replace / with // in 3 places. in Python2, 16 / 32 == int(0) ; but in Python3, 16 / 32 == float(0.5) ; and in Python2 and Python3, 16 // 32 == int(0) ;