Skip to content

Commit 68637f7

Browse files
authored
Merge pull request #8006 from The-OpenROAD-Project-staging/grt-seg-uninit-ctor
grt: fix UNINIT_CTOR in Segment (in fastroute/)
2 parents 18a68bc + dcd0322 commit 68637f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grt/src/fastroute/include/DataType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ enum class EdgeDirection
4848
struct Segment // A Segment is a 2-pin connection
4949
{
5050
Segment(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int8_t cost)
51-
: x1(x1), y1(y1), x2(x2), y2(y2), cost(cost)
51+
: x1(x1), y1(y1), x2(x2), y2(y2), cost(cost), xFirst(false), HVH(false)
5252
{
5353
}
5454
const int16_t x1, y1, x2, y2; // coordinates of two endpoints (x1 <= x2)

0 commit comments

Comments
 (0)