From 29923b78fd1ee0b1357a045ecee502ec05fde5b6 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 5 Mar 2020 23:28:41 -0500 Subject: [PATCH] Internals: Use VL_TO_STRING instead of to_string. --- src/V3Width.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 497bc928c..30f6f9027 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -2796,8 +2796,10 @@ private: newFormat += "%@"; AstNRelinker handle; argp->unlinkFrBack(&handle); - AstCMethodHard* newp = new AstCMethodHard( - nodep->fileline(), argp, "to_string", NULL); + AstCMath* newp = new AstCMath( + nodep->fileline(), "VL_TO_STRING(", 0, true); + newp->addBodysp(argp); + newp->addBodysp(new AstText(nodep->fileline(), ")")); newp->dtypeSetString(); newp->pure(true); newp->protect(false);