Commit 15bb913b authored by Lisandro Dalcin's avatar Lisandro Dalcin

fix ssize_t tescase (ticket #399)

parent 511b14d8
...@@ -46,12 +46,13 @@ Traceback (most recent call last): ...@@ -46,12 +46,13 @@ Traceback (most recent call last):
OverflowError: ... OverflowError: ...
""" """
# XXX This should generate a warning !!!
cdef extern from *: cdef extern from *:
ctypedef long ssize_t ctypedef long ssize_t # XXX This should generate a warning !!!
ssize_t PY_SSIZE_T_MAX
ssize_t PY_SSIZE_T_MIN
SSIZE_T_MAX = <ssize_t>((<size_t>-1)>>1) SSIZE_T_MAX = PY_SSIZE_T_MAX
SSIZE_T_MIN = (-SSIZE_T_MAX-1) SSIZE_T_MIN = PY_SSIZE_T_MIN
def test(ssize_t i): def test(ssize_t i):
return i return i
......
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