Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
15bb913b
Commit
15bb913b
authored
May 02, 2010
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ssize_t tescase (ticket #399)
parent
511b14d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tests/run/ssize_t_T399.pyx
tests/run/ssize_t_T399.pyx
+5
-4
No files found.
tests/run/ssize_t_T399.pyx
View file @
15bb913b
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment