From 9bf0e54937f0c1226d183dbeb156c0d845963e4b Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 26 Feb 2023 12:21:17 -0500 Subject: [PATCH] Internals: add const --- src/V3Width.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 2dfc4534e..dba52c328 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -5497,7 +5497,7 @@ private: } else { userIterateChildren(nodep, WidthVP{SELF, BOTH}.p()); if (nodep->edgeType().anEdge()) { - AstNodeDType* sensDtp = nodep->sensp()->dtypep()->skipRefp(); + AstNodeDType* const sensDtp = nodep->sensp()->dtypep()->skipRefp(); if (sensDtp->isDouble()) { nodep->sensp()->v3error( "Edge event control not legal on real type (IEEE 1800-2017 6.12.1)");