summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/parallel/partial_sum.h
diff options
context:
space:
mode:
authorJohannes Singler <singler@kit.edu>2009-11-09 16:36:59 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2009-11-09 16:36:59 +0000
commit8b0c13a8240a7f49775c2a4e71da39db3515ec19 (patch)
tree026b205042ea96298e8e0e814c8c833472080fc1 /libstdc++-v3/include/parallel/partial_sum.h
parente0dc3601d3d3216b9a67985fd0d7d388751a53e0 (diff)
downloadgcc-8b0c13a8240a7f49775c2a4e71da39db3515ec19.tar.gz
multiway_merge.h (multiway_merge_*, [...]): Replace int by appropriate difference_type (typedef to _SeqNumber) or _ThreadIndex.
2009-11-09 Johannes Singler <singler@kit.edu> * include/parallel/multiway_merge.h (multiway_merge_*, __sequential_multiway_merge, parallel_multiway_merge): Replace int by appropriate difference_type (typedef to _SeqNumber) or _ThreadIndex. * include/parallel/multiseq_selection.h (multiseq_partition, multiseq_selection): Replace int by appropriate difference_type (typedef to _SeqNumber) * include/parallel/base.h (__get_max_threads): Replace int by _ThreadIndex. * include/parallel/balanced_quicksort.h (__qsb_local_sort_with_helping, __parallel_sort_qsb): Likewise. * include/parallel/set_operations.h (__parallel_set_operation): Likewise. * include/parallel/unique_copy.h (__parallel_unique_copy): Likewise. * include/parallel/multiway_mergesort.h (_SplitConsistently, parallel_sort_mwms_pu, parallel_sort_mwms): Likewise. * include/parallel/partial_sum.h (__parallel_partial_sum_linear): Likewise. * include/parallel/partition.h (__parallel_partition): Replace int by appropriate difference_type or _ThreadIndex. From-SVN: r154039
Diffstat (limited to 'libstdc++-v3/include/parallel/partial_sum.h')
-rw-r--r--libstdc++-v3/include/parallel/partial_sum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/parallel/partial_sum.h b/libstdc++-v3/include/parallel/partial_sum.h
index 02404203f4e..487fd6dd666 100644
--- a/libstdc++-v3/include/parallel/partial_sum.h
+++ b/libstdc++-v3/include/parallel/partial_sum.h
@@ -132,7 +132,7 @@ namespace __gnu_parallel
/ ((double)__num_threads + __s.partial_sum_dilation)),
__borderstart = __n - __num_threads * __chunk_length;
__borders[0] = 0;
- for (int __i = 1; __i < (__num_threads + 1); ++__i)
+ for (_ThreadIndex __i = 1; __i < (__num_threads + 1); ++__i)
{
__borders[__i] = __borderstart;
__borderstart += __chunk_length;