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
Boxiang Sun
cython
Commits
471a4700
Commit
471a4700
authored
Jul 02, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore meaningless 'signed' declaration for non-char types.
This makes type promotion rules clearer.
parent
dbe3f24c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+4
-0
No files found.
Cython/Compiler/PyrexTypes.py
View file @
471a4700
...
...
@@ -1427,6 +1427,10 @@ class CNumericType(CType):
def
__init__
(
self
,
rank
,
signed
=
1
):
self
.
rank
=
rank
if
rank
>
0
and
signed
==
SIGNED
:
# Signed is meaningless for anything but char, and complicates
# type promotion.
signed
=
1
self
.
signed
=
signed
def
sign_and_name
(
self
):
...
...
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