Why is this cython function:
cimport numpy as np cimport cython def foo(np.uint32_t b): cdef np.int32_t a = 0 if ab <0: return 0 else: return 1
returns 1, for foo (1)? I compiled similar code in C and did not observe that both operands (a, b) were translated into unsigned int.
source share