Skip to content

Commit 3624e6f

Browse files
committed
odb: further tidy
Signed-off-by: Matt Liberty <[email protected]>
1 parent 2c9856d commit 3624e6f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/odb/src/db/dbModInst.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Copyright (c) 2020-2025, The OpenROAD Authors
33

44
#include <cassert>
5-
#include <cstdlib>
65
#include <cstring>
76
#include <fstream>
87
#include <iterator>

src/odb/src/db/tmg_conn_g.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void tmg_conn_graph::init(const int ptN, const int shortN)
5252
}
5353
if (4 * ptN + 2 * shortN > eNmax_) {
5454
eNmax_ *= 2;
55-
eNmax_ = std::max(4 * ptN + 2 * shortN, eNmax_);
55+
eNmax_ = std::max((4 * ptN) + (2 * shortN), eNmax_);
5656
free(eV_);
5757
eV_ = (tcg_edge*) safe_malloc(eNmax_ * sizeof(tcg_edge));
5858
}

0 commit comments

Comments
 (0)