mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix string cast on array call
This commit is contained in:
+2
-1
@@ -82,7 +82,8 @@ class CastVisitor final : public VNVisitor {
|
||||
}
|
||||
void ensureCast(AstNodeExpr* nodep) {
|
||||
if (castSize(nodep->backp()) != castSize(nodep) || !nodep->user1()) {
|
||||
if (!nodep->isNull()) insertCast(nodep, castSize(nodep->backp()));
|
||||
if (!nodep->isNull() && !nodep->isString() && !nodep->isDouble())
|
||||
insertCast(nodep, castSize(nodep->backp()));
|
||||
}
|
||||
}
|
||||
// cppcheck-suppress constParameterPointer // lhsp might be changed
|
||||
|
||||
Reference in New Issue
Block a user