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
e2c691d3
Commit
e2c691d3
authored
Nov 04, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ticket #446 (non-float complex regression).
parent
31f8c53f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+4
-2
No files found.
Cython/Compiler/PyrexTypes.py
View file @
e2c691d3
...
@@ -877,8 +877,10 @@ class CComplexType(CNumericType):
...
@@ -877,8 +877,10 @@ class CComplexType(CNumericType):
# The below is not actually used: Coercions are currently disabled
# The below is not actually used: Coercions are currently disabled
# so that complex types of external types can not be created
# so that complex types of external types can not be created
self
.
funcsuffix
=
"_%s"
%
real_type
.
specalization_name
()
self
.
funcsuffix
=
"_%s"
%
real_type
.
specalization_name
()
el
se
:
el
if
hasattr
(
real_type
,
'math_h_modifier'
)
:
self
.
funcsuffix
=
real_type
.
math_h_modifier
self
.
funcsuffix
=
real_type
.
math_h_modifier
else
:
self
.
funcsuffix
=
"_%s"
%
real_type
.
specalization_name
()
self
.
real_type
=
real_type
self
.
real_type
=
real_type
CNumericType
.
__init__
(
self
,
real_type
.
rank
+
0.5
,
real_type
.
signed
)
CNumericType
.
__init__
(
self
,
real_type
.
rank
+
0.5
,
real_type
.
signed
)
...
@@ -1135,7 +1137,7 @@ proto="""
...
@@ -1135,7 +1137,7 @@ proto="""
#define __Pyx_c_quot%(m)s(a, b) ((a)/(b))
#define __Pyx_c_quot%(m)s(a, b) ((a)/(b))
#define __Pyx_c_neg%(m)s(a) (-(a))
#define __Pyx_c_neg%(m)s(a) (-(a))
#ifdef __cplusplus
#ifdef __cplusplus
#define __Pyx_c_is_zero%(m)s(z) ((z)==
0.
0)
#define __Pyx_c_is_zero%(m)s(z) ((z)==
(%(real_type)s)
0)
#define __Pyx_c_conj%(m)s(z) (::std::conj(z))
#define __Pyx_c_conj%(m)s(z) (::std::conj(z))
/*#define __Pyx_c_abs%(m)s(z) (::std::abs(z))*/
/*#define __Pyx_c_abs%(m)s(z) (::std::abs(z))*/
#else
#else
...
...
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