Commit 26f60d66 authored by Stefan Behnel's avatar Stefan Behnel

safety fix

parent 78782b36
...@@ -3,7 +3,7 @@ cimport cython ...@@ -3,7 +3,7 @@ cimport cython
cdef object two = 2 cdef object two = 2
cdef int size_in_bits = sizeof(INT) * 8 cdef int size_in_bits = sizeof(INT) * 8
cdef bint is_signed_ = (<INT>-1 < 0) cdef bint is_signed_ = ((<INT>-1) < 0)
cdef INT max_value_ = <INT>(two ** (size_in_bits - is_signed_) - 1) cdef INT max_value_ = <INT>(two ** (size_in_bits - is_signed_) - 1)
cdef INT min_value_ = ~max_value_ cdef INT min_value_ = ~max_value_
cdef INT half_ = max_value_ // 2 cdef INT half_ = max_value_ // 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment