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
Kirill Smelkov
cython
Commits
3dbffcfd
Commit
3dbffcfd
authored
Jan 21, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compiler crash in error case
parent
0ed536d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+4
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
3dbffcfd
...
@@ -8435,13 +8435,16 @@ class PowNode(NumBinopNode):
...
@@ -8435,13 +8435,16 @@ class PowNode(NumBinopNode):
self
.
pow_func
=
"<error>"
self
.
pow_func
=
"<error>"
elif
self
.
type
.
is_float
:
elif
self
.
type
.
is_float
:
self
.
pow_func
=
"pow"
+
self
.
type
.
math_h_modifier
self
.
pow_func
=
"pow"
+
self
.
type
.
math_h_modifier
el
se
:
el
if
self
.
type
.
is_int
:
self
.
pow_func
=
"__Pyx_pow_%s"
%
self
.
type
.
declaration_code
(
''
).
replace
(
' '
,
'_'
)
self
.
pow_func
=
"__Pyx_pow_%s"
%
self
.
type
.
declaration_code
(
''
).
replace
(
' '
,
'_'
)
env
.
use_utility_code
(
env
.
use_utility_code
(
int_pow_utility_code
.
specialize
(
int_pow_utility_code
.
specialize
(
func_name
=
self
.
pow_func
,
func_name
=
self
.
pow_func
,
type
=
self
.
type
.
declaration_code
(
''
),
type
=
self
.
type
.
declaration_code
(
''
),
signed
=
self
.
type
.
signed
and
1
or
0
))
signed
=
self
.
type
.
signed
and
1
or
0
))
elif
not
self
.
type
.
is_error
:
error
(
self
.
pos
,
"got unexpected types for C power operator: %s, %s"
%
(
self
.
operand1
.
type
,
self
.
operand2
.
type
))
def
calculate_result_code
(
self
):
def
calculate_result_code
(
self
):
# Work around MSVC overloading ambiguity.
# Work around MSVC overloading ambiguity.
...
...
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