Skip to content

Commit 9bb84a5

Browse files
committed
mpl: add parentheses to explicitly specify the order of operations
Signed-off-by: Arthur Koucher <[email protected]>
1 parent bf24abb commit 9bb84a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mpl/src/hier_rtlmp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2319,7 +2319,7 @@ SequencePair HierRTLMP::computeArraySequencePair(Cluster* cluster,
23192319

23202320
for (int i = 1; i <= columns; ++i) {
23212321
for (int j = 1; j <= rows; j++) {
2322-
const int macro_id = rows * i - j;
2322+
const int macro_id = (rows * i) - j;
23232323
if (macro_id < number_of_macros) {
23242324
sequence_pair.neg_sequence.push_back(macro_id);
23252325
} else {

0 commit comments

Comments
 (0)