diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index 9c20dc3f5..2368999d0 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -120,7 +120,7 @@ public: puts(itemp->name()); puts(" = "); itemp->valuep()->iterateAndNext(*this); - if (nodep->nextp()) puts(","); + if (itemp->nextp()->castEnumItem()) puts(","); puts("\n"); } puts("};\n");