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
21442aba
Commit
21442aba
authored
Dec 08, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup, use -1 as exception value for double conversion
parent
d1bfd2a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+2
-1
No files found.
Cython/Compiler/PyrexTypes.py
View file @
21442aba
...
@@ -873,6 +873,8 @@ class CFloatType(CNumericType):
...
@@ -873,6 +873,8 @@ class CFloatType(CNumericType):
is_float
=
1
is_float
=
1
to_py_function
=
"PyFloat_FromDouble"
to_py_function
=
"PyFloat_FromDouble"
from_py_function
=
"__pyx_PyFloat_AsDouble"
from_py_function
=
"__pyx_PyFloat_AsDouble"
exception_value
=
-
1
def
__init__
(
self
,
rank
,
pymemberdef_typecode
=
None
,
math_h_modifier
=
''
):
def
__init__
(
self
,
rank
,
pymemberdef_typecode
=
None
,
math_h_modifier
=
''
):
CNumericType
.
__init__
(
self
,
rank
,
1
,
pymemberdef_typecode
)
CNumericType
.
__init__
(
self
,
rank
,
1
,
pymemberdef_typecode
)
...
@@ -2020,7 +2022,6 @@ def widest_numeric_type(type1, type2):
...
@@ -2020,7 +2022,6 @@ def widest_numeric_type(type1, type2):
return
type1
return
type1
else
:
else
:
return
sign_and_rank_to_type
[
min
(
type1
.
signed
,
type2
.
signed
),
max
(
type1
.
rank
,
type2
.
rank
)]
return
sign_and_rank_to_type
[
min
(
type1
.
signed
,
type2
.
signed
),
max
(
type1
.
rank
,
type2
.
rank
)]
return
widest_type
def
spanning_type
(
type1
,
type2
):
def
spanning_type
(
type1
,
type2
):
# Return a type assignable from both type1 and type2.
# Return a type assignable from both type1 and type2.
...
...
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