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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f2cf0b6e
Commit
f2cf0b6e
authored
Oct 26, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix integer precision loss warnings in prange.
parent
c7b05455
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-1
No files found.
Cython/Compiler/Nodes.py
View file @
f2cf0b6e
...
@@ -8531,6 +8531,7 @@ class ParallelRangeNode(ParallelStatNode):
...
@@ -8531,6 +8531,7 @@ class ParallelRangeNode(ParallelStatNode):
# the start, stop , step, temps and target cnames
# the start, stop , step, temps and target cnames
fmt_dict
=
{
fmt_dict
=
{
'target'
:
target_index_cname
,
'target'
:
target_index_cname
,
'target_type'
:
self
.
target
.
type
.
empty_declaration_code
()
}
}
# Setup start, stop and step, allocating temps if needed
# Setup start, stop and step, allocating temps if needed
...
@@ -8673,7 +8674,7 @@ class ParallelRangeNode(ParallelStatNode):
...
@@ -8673,7 +8674,7 @@ class ParallelRangeNode(ParallelStatNode):
# at least it doesn't spoil indentation
# at least it doesn't spoil indentation
code
.
begin_block
()
code
.
begin_block
()
code
.
putln
(
"%(target)s =
%(start)s + %(step)s * %(i)s
;"
%
fmt_dict
)
code
.
putln
(
"%(target)s =
(%(target_type)s)(%(start)s + %(step)s * %(i)s)
;"
%
fmt_dict
)
self
.
initialize_privates_to_nan
(
code
,
exclude
=
self
.
target
.
entry
)
self
.
initialize_privates_to_nan
(
code
,
exclude
=
self
.
target
.
entry
)
if
self
.
is_parallel
:
if
self
.
is_parallel
:
...
...
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