future division not respected by C ints (including literals)
|Reported by:||robertwb||Owned by:||somebody|
Description (last modified by dagss)
from __future__ import division # or, cython3 cdef int a, b = 1, c = 2 a = b / c
should result in a compilation error. The resulting type of / with future division should be some floating point regardless of whether the input types are int.
In the generated code, this means the arguments (b and c above) must be cast to float prior to the division.