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
dbe3f24c
Commit
dbe3f24c
authored
Jul 02, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistently promote to typedef types over non-typedef of equal rank and sign.
parent
97e1c477
Changes
1
Hide 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 @
dbe3f24c
...
@@ -4131,6 +4131,10 @@ def widest_numeric_type(type1, type2):
...
@@ -4131,6 +4131,10 @@ def widest_numeric_type(type1, type2):
widest_type
=
type1
widest_type
=
type1
elif
type1
.
signed
<
type2
.
signed
:
elif
type1
.
signed
<
type2
.
signed
:
widest_type
=
type1
widest_type
=
type1
elif
type1
.
signed
>
type2
.
signed
:
widest_type
=
type2
elif
type1
.
is_typedef
>
type2
.
is_typedef
:
widest_type
=
type1
else
:
else
:
widest_type
=
type2
widest_type
=
type2
return
widest_type
return
widest_type
...
...
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