diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index 89c6bc609..00fe1eeeb 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -693,7 +693,7 @@ public: iterateAndNextNull(nodep->offset()); puts(","); iterateAndNextNull(nodep->operation()); - puts(")==-1?-1:0)"); + puts(") == -1 ? -1 : 0)"); } virtual void visit(AstFTell* nodep) override { puts("VL_FTELL_I("); @@ -703,7 +703,7 @@ public: virtual void visit(AstFRewind* nodep) override { puts("(VL_FSEEK_I("); iterateAndNextNull(nodep->filep()); - puts(", 0, 0)==-1?-1:0)"); + puts(", 0, 0) == -1 ? -1 : 0)"); } virtual void visit(AstFRead* nodep) override { puts("VL_FREAD_I("); diff --git a/src/V3Task.cpp b/src/V3Task.cpp index 6e4e47b44..b58cc0c78 100644 --- a/src/V3Task.cpp +++ b/src/V3Task.cpp @@ -786,7 +786,7 @@ private: // Static doesn't need save-restore as if below will re-fill proper value stmt += "static int __Vfuncnum = -1;\n"; // First time init (faster than what the compiler does if we did a singleton - stmt += "if (VL_UNLIKELY(__Vfuncnum==-1)) { __Vfuncnum = Verilated::exportFuncNum(\"" + stmt += "if (VL_UNLIKELY(__Vfuncnum == -1)) { __Vfuncnum = Verilated::exportFuncNum(\"" + nodep->cname() + "\"); }\n"; // If the find fails, it will throw an error stmt += "const VerilatedScope* __Vscopep = Verilated::dpiScope();\n";