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

TypeError: %x format: an integer is required, not float #123

Open lukasm91 opened 7 years ago

lukasm91 commented 7 years ago

I cannot compile the library due to the error above.

Seems like the variable k in scripts/ud_opcode, in the function pprint may be a float.

I can resolve the issue by replacing self.log("%s |-<%02x> %s" % (indent, k, e)) with self.log("%s |-<%02x> %s" % (indent, int(k), e))

SBasalaev commented 3 years ago

Duplicate of #120