Message275082
PyLong_AsLong() not just converts Python integer to C long, but it also converts Python float to Python integer (with the lost of the fractional part). We need to check that the value is Python integer.
Here is a patch that fixes this issue and few other bugs. |
|
Date |
User |
Action |
Args |
2016-09-08 17:57:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, facundobatista, StyXman |
2016-09-08 17:57:08 | serhiy.storchaka | set | messageid: <1473357428.94.0.480980142871.issue28019@psf.upfronthosting.co.za> |
2016-09-08 17:57:08 | serhiy.storchaka | link | issue28019 messages |
2016-09-08 17:57:08 | serhiy.storchaka | create | |
|