Skip to content

Commit c998da8

Browse files
author
Christos Konstantinos Matzoros
committed
Fix cast warning
1 parent 66a2e93 commit c998da8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

include/osp/bsp/scheduler/GreedySchedulers/GreedyVarianceSspScheduler.hpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,14 @@ class GreedyVarianceSspScheduler : public MaxBspScheduler<Graph_t> {
7575
}
7676
temp = std::log(temp) / 2 + max_priority;
7777

78-
double node_weight = std::log((double)std::max(graph.vertex_work_weight(*r_iter), static_cast<v_workw_t<Graph_t>>(1)));
78+
double node_weight = std::log(
79+
static_cast<double>(
80+
std::max(
81+
graph.vertex_work_weight(*r_iter),
82+
static_cast<v_workw_t<Graph_t>>(1)
83+
)
84+
)
85+
);
7986
double larger_val = node_weight > temp ? node_weight : temp;
8087

8188
work_variance[*r_iter] =

0 commit comments

Comments
 (0)