Closed wsourdeau closed 3 years ago
Since Python 3 is becoming the norm in modern distros, I thought it would be a good idea to adapt the code to it.
Thank you for opening the Pull Request.
Could you change the formulas with integer casts to use integer divisions instead?
For example, change int(16 * BLOCK_SIZE/2 + BLOCK_SIZE/2)
to 16 * BLOCK_SIZE // 2 + BLOCK_SIZE // 2
.
Thank you for opening the Pull Request. Could you change the formulas with integer casts to use integer divisions instead? For example, change
int(16 * BLOCK_SIZE/2 + BLOCK_SIZE/2)
to16 * BLOCK_SIZE // 2 + BLOCK_SIZE // 2
.
Done! I had no idea about that operator. It works very well.