Skip to content

Commit 32c0730

Browse files
committed
simplify bool draw_current_element logic
1 parent 1193fca commit 32c0730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/draw/draw_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
11341134
float prev_arr_time = std::numeric_limits<float>::quiet_NaN();
11351135
int element_counter = 0;
11361136
for (const tatum::TimingPathElem& elem : path.data_arrival_path().elements()) {
1137-
bool draw_current_element = element_indexes.empty() ? true : element_indexes.find(element_counter) != element_indexes.end();
1137+
bool draw_current_element = element_indexes.empty() || element_indexes.find(element_counter) != element_indexes.end();
11381138

11391139
// draw element
11401140
tatum::NodeId node = elem.node();

0 commit comments

Comments
 (0)