fix int mismatch bug in _bridge.pyx by using cython.integral type