From a7a790416e45542d47ea04e8e75e5524bc68cfc1 Mon Sep 17 00:00:00 2001 From: John Coiner Date: Tue, 27 Feb 2018 07:16:16 -0500 Subject: [PATCH] Internals: Fix passing bool as int. No functional change. Signed-off-by: Wilson Snyder --- src/V3Ast.h | 2 +- src/V3Options.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Ast.h b/src/V3Ast.h index 0f1a8556d..c7267d280 100644 --- a/src/V3Ast.h +++ b/src/V3Ast.h @@ -1287,7 +1287,7 @@ public: static AstNode* addNextNull(AstNode* nodep, AstNode* newp); // Returns nodep, adds newp (maybe NULL) to end of nodep's list inline AstNode* addNext(AstNode* newp) { return addNext(this, newp); } inline AstNode* addNextNull(AstNode* newp) { return addNextNull(this, newp); } - void addNextHere(AstNode* newp); // Adds after speced node + void addNextHere(AstNode* newp); // Insert newp at this->nextp void addPrev(AstNode* newp) { replaceWith(newp); newp->addNext(this); } void addHereThisAsNext(AstNode* newp); // Adds at old place of this, this becomes next void replaceWith(AstNode* newp); // Replace current node in tree with new node diff --git a/src/V3Options.cpp b/src/V3Options.cpp index cc1f3aae9..ef3b7d41a 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -1284,7 +1284,7 @@ V3Options::V3Options() { VName::maxLength(128); // Linux filename limits 256; leave half for prefix - optimize(true); + optimize(1); // Default +libext+ addLibExtV(""); // So include "filename.v" will find the same file addLibExtV(".v");