natekupp / ffx

Fast Function Extraction
http://trent.st/ffx
Other
80 stars 97 forks source link

Python3 division fix. #23

Closed dvolgyes closed 7 years ago

dvolgyes commented 7 years ago

Python3 has a changed division operator, and / always means true division, unlike in python2 where it had different behavior for integers and floats, see: http://www.informit.com/articles/article.aspx?p=1439189&seqNum=2

Anyway, this patch enforces integer division which is required for the slicing.

jmmcd commented 7 years ago

Thanks!

natekupp commented 7 years ago

thanks for the fix! and thanks @jmmcd you beat me to the merge :)