From 8d14463b18f9ffe49005aaa04eefa2dcd2e7fb7b Mon Sep 17 00:00:00 2001 From: Johan Bjork Date: Thu, 5 May 2016 22:48:53 -0400 Subject: [PATCH] Fix emitting public enumerations. Signed-off-by: Wilson Snyder --- src/V3EmitC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");